568 |
12 Mar 08 |
peter |
#!@SHELL@ |
568 |
12 Mar 08 |
peter |
# @configure_input@ |
568 |
12 Mar 08 |
peter |
3 |
|
267 |
01 May 07 |
jari |
# $Id$ |
246 |
28 Apr 07 |
peter |
5 |
|
978 |
12 Dec 09 |
peter |
# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson |
1601 |
06 Sep 15 |
peter |
# Copyright (C) 2009, 2010, 2011, 2015 Peter Johansson |
327 |
18 May 07 |
jari |
8 |
# |
687 |
04 Aug 08 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
327 |
18 May 07 |
jari |
10 |
# |
327 |
18 May 07 |
jari |
# svndigest is free software; you can redistribute it and/or modify it |
327 |
18 May 07 |
jari |
# under the terms of the GNU General Public License as published by |
693 |
11 Sep 08 |
jari |
# the Free Software Foundation; either version 3 of the License, or |
327 |
18 May 07 |
jari |
# (at your option) any later version. |
327 |
18 May 07 |
jari |
15 |
# |
327 |
18 May 07 |
jari |
# svndigest is distributed in the hope that it will be useful, but |
327 |
18 May 07 |
jari |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
327 |
18 May 07 |
jari |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
327 |
18 May 07 |
jari |
# General Public License for more details. |
327 |
18 May 07 |
jari |
20 |
# |
327 |
18 May 07 |
jari |
# You should have received a copy of the GNU General Public License |
693 |
11 Sep 08 |
jari |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
327 |
18 May 07 |
jari |
23 |
|
1601 |
06 Sep 15 |
peter |
if test $# -eq 1; then |
1601 |
06 Sep 15 |
peter |
wc_revision="-r $1" |
1601 |
06 Sep 15 |
peter |
else |
1601 |
06 Sep 15 |
peter |
# default revision is HEAD |
1601 |
06 Sep 15 |
peter |
wc_revision="-r HEAD" |
1601 |
06 Sep 15 |
peter |
fi |
1601 |
06 Sep 15 |
peter |
30 |
|
1280 |
06 Nov 10 |
peter |
test -z "$SVN" && SVN="svn --non-interactive" |
1092 |
12 Jun 10 |
peter |
rootdir=toy_project |
246 |
28 Apr 07 |
peter |
33 |
|
744 |
08 Jan 09 |
peter |
if test ! -e $rootdir; then |
1601 |
06 Sep 15 |
peter |
repo="@abs_test_repo@"; |
1601 |
06 Sep 15 |
peter |
$SVN checkout file://$repo/trunk $wc_revision $rootdir || exit 1; |
246 |
28 Apr 07 |
peter |
fi |
246 |
28 Apr 07 |
peter |
38 |
|
1363 |
04 Jun 11 |
peter |
$SVN revert --recursive $rootdir || exit 1 |
1601 |
06 Sep 15 |
peter |
$SVN update $rootdir $wc_revision || exit 1 |
1363 |
04 Jun 11 |
peter |
exit 0 |