diff options
Diffstat (limited to 'bin/sync-dslinux-svn-repo.sh')
-rwxr-xr-x | bin/sync-dslinux-svn-repo.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/sync-dslinux-svn-repo.sh b/bin/sync-dslinux-svn-repo.sh new file mode 100755 index 0000000..c302be6 --- /dev/null +++ b/bin/sync-dslinux-svn-repo.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# update dslinux read-only svn mirror (scripted by stsp) + +#set -x + +#logger "`basename $0`: invoked `date`" + +ANONSVN_HOME=/raid/anonsvn +SVN_ROOTDIR=$ANONSVN_HOME/dslinux + +lockfile=/tmp/`basename $0`.lock + +if lockfile -r 5 $lockfile +then + (cd $SVN_ROOTDIR && rsync -q -z -a --delete rsync://pferd.in-berlin.de/dslinuxsvn/ .) + rm -f $lockfile +fi + |