source: branches/0.7-stable/test/copyright_test2.sh.in @ 933

Last change on this file since 933 was 933, checked in by Peter Johansson, 12 years ago

fixes #415

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[568]1#!@SHELL@
2# @configure_input@
3
[267]4# $Id: copyright_test2.sh.in 933 2009-12-03 02:53:30Z peter $
[246]5
[847]6# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009 Peter Johansson
[327]8#
[687]9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
[327]10#
11# svndigest is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by
[693]13# the Free Software Foundation; either version 3 of the License, or
[327]14# (at your option) any later version.
15#
16# svndigest is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
[693]22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
[327]23
[748]24abs_top_builddir=@abs_top_builddir@
25abs_builddir=@abs_builddir@
[933]26# this test has its own wc since it modifies wc
27rootdir=$abs_builddir/.toy_project2
28repo="@abs_test_repo@";
[246]29
[748]30test_repo_found=@test_repo_found@
31if test x$test_repo_found != xyes; then
[744]32    exit 77;
33fi
[568]34
[822]35while test $# -gt 0; do
36    case "$1" in
37    -v)
38    VERBOSE=1
39    ;;
40    esac
41    shift
42done
43
44if test -z "$VERBOSE"; then
45  exec > /dev/null
46fi
47
[933]48# exit if cmd fails
49set -e
[744]50
[933]51rm -rf $rootdir
52svn co file://$repo/trunk $rootdir -r 45
53svn update $rootdir/lib
54# cannot use old config file because it's invalid
55svn update $rootdir/.svndigest
[246]56
[933]57$abs_top_builddir/bin/svndigest -r $rootdir --copyright \
58--ignore-cache --no-report --verbose
[539]59
[933]60# remove wc to avoid someone being tempted to modify it
61rm -rf $rootdir
Note: See TracBrowser for help on using the repository browser.