1 | # $Id: test_repo.sh.in 731 2008-12-15 19:03:04Z peter $ |
---|
2 | |
---|
3 | # Copyright (C) 2007 Jari Häkkinen, Peter Johansson |
---|
4 | # Copyright (C) 2008 Peter Johansson |
---|
5 | # |
---|
6 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
7 | # |
---|
8 | # svndigest is free software; you can redistribute it and/or modify it |
---|
9 | # under the terms of the GNU General Public License as published by |
---|
10 | # the Free Software Foundation; either version 2 of the License, or |
---|
11 | # (at your option) any later version. |
---|
12 | # |
---|
13 | # svndigest is distributed in the hope that it will be useful, but |
---|
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | # General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with this program; if not, write to the Free Software |
---|
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
21 | # 02111-1307, USA. |
---|
22 | |
---|
23 | toy=$srcdir/toy_project; |
---|
24 | |
---|
25 | # test repository does not exist and need to be checked out |
---|
26 | if [ ! -d $toy ]; then |
---|
27 | repodir=`cd "$srcdir" && pwd`; |
---|
28 | repodir=$repodir"/repo/trunk"; |
---|
29 | svn checkout file://$repodir $toy; |
---|
30 | fi |
---|
31 | |
---|
32 | svn update $toy > /dev/null; |
---|
33 | |
---|
34 | if [ ! -d $targetdir ]; then |
---|
35 | mkdir $targetdir; |
---|
36 | fi |
---|
37 | |
---|
38 | exec $top_builddir/bin/svndigest -r $toy -t $targetdir -f --copyright $1; |
---|