]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - src/update-svn-revision
Use frsh_forb with conditional ACPI support.
[frescor/demo.git] / src / update-svn-revision
1 #!/bin/sh
2
3 # Usage: ./update-all [ -g ] [ -d <git depth> ]
4 #
5 # Flags: -g  use git svn instead of svn to checkout SVN repositories
6 #        -d  create shallow git repositories of the given depth
7
8 SVN_REPOS="fna fosa frsh omk-build"
9
10 # For demo, we do not use SVN HEAD but a specific revision to have stable
11 # environment
12 SVN_REV=1746
13
14 set -e
15
16 src=`dirname $0`
17 [ -n "$src" ] || src="."
18
19 for i in $SVN_REPOS; do
20         echo "=== $i ==="
21         if [ -d $src/$i/.svn ]; then
22                 ( cd $src/$i && svn up -r $SVN_REV ) || exit 1
23         else
24                 svn co -r $SVN_REV http://www.frescor.org/private/svn/frescor/$i/trunk $src/$i || echo "Cannot checkout $i" >&2
25         fi
26 done