source: tags/0.7.3/test/copyright_test2.sh.in @ 1221

Last change on this file since 1221 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
Line 
1#!@SHELL@
2# @configure_input@
3
4# $Id: copyright_test2.sh.in 933 2009-12-03 02:53:30Z peter $
5
6# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009 Peter Johansson
8#
9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
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
13# the Free Software Foundation; either version 3 of the License, or
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
22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23
24abs_top_builddir=@abs_top_builddir@
25abs_builddir=@abs_builddir@
26# this test has its own wc since it modifies wc
27rootdir=$abs_builddir/.toy_project2
28repo="@abs_test_repo@";
29
30test_repo_found=@test_repo_found@
31if test x$test_repo_found != xyes; then
32    exit 77;
33fi
34
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
48# exit if cmd fails
49set -e
50
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
56
57$abs_top_builddir/bin/svndigest -r $rootdir --copyright \
58--ignore-cache --no-report --verbose
59
60# remove wc to avoid someone being tempted to modify it
61rm -rf $rootdir
Note: See TracBrowser for help on using the repository browser.