diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-18 03:37:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-18 03:37:34 +0000 |
commit | 6058c9679de8a48de5b014e585520698478ad4a4 (patch) | |
tree | 426d5837e67e695ef99c183e9a3e9d91c84357fe /scripts/cronjob.sh | |
parent | update gcc snapshots (diff) | |
download | toolchain-6058c9679de8a48de5b014e585520698478ad4a4.tar.gz toolchain-6058c9679de8a48de5b014e585520698478ad4a4.tar.bz2 toolchain-6058c9679de8a48de5b014e585520698478ad4a4.zip |
handle newer svn behavior which errors out when you `svn add` existing files
Diffstat (limited to 'scripts/cronjob.sh')
-rwxr-xr-x | scripts/cronjob.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/cronjob.sh b/scripts/cronjob.sh index 2a4d31f..b0d8cee 100755 --- a/scripts/cronjob.sh +++ b/scripts/cronjob.sh @@ -4,16 +4,16 @@ cd "${0%/*}"/.. ( svn up -q -./scripts/update-gcc -cd sys-devel/gcc -svn add -q * -svn commit -m 'update gcc snapshots' -cd ../.. +doit() { + ./scripts/update-$1 + cd sys-devel/$1 + svn add -q * || : + [[ -z $(svn st | grep -v '[^AM]') ]] + svn commit -m "update $1 snapshots" + cd ../.. +} -./scripts/update-gdb -cd sys-devel/gdb -svn add -q * -svn commit -m 'update gdb snapshots' -cd ../.. +doit gcc +doit gdb ) >& scripts/cronjob.log |