1553 |
04 Nov 12 |
peter |
#!/bin/sh |
1553 |
04 Nov 12 |
peter |
2 |
|
1553 |
04 Nov 12 |
peter |
# $Id$ |
1553 |
04 Nov 12 |
peter |
4 |
|
1553 |
04 Nov 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1553 |
04 Nov 12 |
peter |
6 |
# |
1553 |
04 Nov 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1553 |
04 Nov 12 |
peter |
8 |
# |
1553 |
04 Nov 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1553 |
04 Nov 12 |
peter |
# under the terms of the GNU General Public License as published by |
1553 |
04 Nov 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1553 |
04 Nov 12 |
peter |
# (at your option) any later version. |
1553 |
04 Nov 12 |
peter |
13 |
# |
1553 |
04 Nov 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1553 |
04 Nov 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1553 |
04 Nov 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1553 |
04 Nov 12 |
peter |
# General Public License for more details. |
1553 |
04 Nov 12 |
peter |
18 |
# |
1553 |
04 Nov 12 |
peter |
# You should have received a copy of the GNU General Public License |
1553 |
04 Nov 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1553 |
04 Nov 12 |
peter |
21 |
|
1553 |
04 Nov 12 |
peter |
# test that svncopyright follows copy |
1553 |
04 Nov 12 |
peter |
23 |
|
1553 |
04 Nov 12 |
peter |
24 |
required="repo" |
1553 |
04 Nov 12 |
peter |
25 |
. test/init.sh || exit 99 |
1553 |
04 Nov 12 |
peter |
26 |
|
1553 |
04 Nov 12 |
peter |
# exit if cmd fails |
1553 |
04 Nov 12 |
peter |
28 |
set -e |
1553 |
04 Nov 12 |
peter |
29 |
|
1553 |
04 Nov 12 |
peter |
30 |
$SVN revert $rootdir -R |
1553 |
04 Nov 12 |
peter |
31 |
|
1555 |
05 Nov 12 |
peter |
32 |
SVNCOPYRIGHT_run 0 --root $rootdir/late_copy --ignore-cache \ |
1553 |
04 Nov 12 |
peter |
33 |
--config-file $rootdir/.svndigest/config --verbose |
1553 |
04 Nov 12 |
peter |
34 |
|
1553 |
04 Nov 12 |
peter |
35 |
$GREP 'Copyright (C)' $rootdir/late_copy/Node.h || exit_fail |
1553 |
04 Nov 12 |
peter |
36 |
$GREP 'Copyright (C) 2006 Jari' $rootdir/late_copy/Node.h || exit_fail |
1553 |
04 Nov 12 |
peter |
37 |
$GREP 'Copyright (C) 2007 Peter' $rootdir/late_copy/Node.h || exit_fail |
1553 |
04 Nov 12 |
peter |
38 |
$GREP 'Copyright (C) 2008' $rootdir/late_copy/Node.h && exit_fail |
1553 |
04 Nov 12 |
peter |
39 |
|
1553 |
04 Nov 12 |
peter |
40 |
rm -rf $rootdir |
1553 |
04 Nov 12 |
peter |
41 |
exit_success; |