summaryrefslogtreecommitdiff
path: root/archrelease
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-04-08 01:46:29 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-04-08 01:46:29 -0500
commitfd04791f5b42c3f65519d55262ac4d4660a40f1d (patch)
tree9b275ea0d45ac7b5542fc74e309017977e5a2b57 /archrelease
parent38dc2efcd5984056bdd6618af83618e28abfa64b (diff)
downloaddevtools32-fd04791f5b42c3f65519d55262ac4d4660a40f1d.tar.xz
archrelease modifications to auto-commit handling
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archrelease')
-rwxr-xr-xarchrelease25
1 files changed, 15 insertions, 10 deletions
diff --git a/archrelease b/archrelease
index 01c1472..59b85ec 100755
--- a/archrelease
+++ b/archrelease
@@ -1,19 +1,24 @@
#!/bin/bash
if [ "$1" = "" ]; then
- echo "Usage: archrelease <repo>"
- exit 1
+ echo "Usage: archrelease <repo>"
+ exit 1
fi
if [ ! -d ../repos/$1 ]; then
- pushd ..
- svn copy trunk ../repos/$1
- popd
+ pushd ..
+ svn copy trunk repos/$1
+ svn commit -m "archrelease: new repo $1"
+ popd
else
- svnmerge merge ../repos/$1
+ svnmerge merge ../repos/$1
+ pushd ..
+ if [ -f trunk/svnmerge-commit-message.txt ]; then
+ svn commit -F trunk/svnmerge-commit-message.txt
+ rm trunk/svnmerge-commit-message.txt
+ else
+ echo "Nothing to commit"
+ fi
+ popd
fi
-pushd ..
-svn commit -F trunk/svnmerge-commit-message.txt
-popd
-rm svnmerge-commit-message.txt