2008-04-06 03:11:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$1" = "" ]; then
|
2008-04-08 08:46:29 +02:00
|
|
|
echo "Usage: archrelease <repo>"
|
|
|
|
exit 1
|
2008-04-06 03:11:32 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d ../repos/$1 ]; then
|
2008-04-08 08:46:29 +02:00
|
|
|
pushd ..
|
2008-04-08 08:53:18 +02:00
|
|
|
svn copy -r HEAD trunk repos/$1
|
2008-04-08 08:46:29 +02:00
|
|
|
svn commit -m "archrelease: new repo $1"
|
|
|
|
popd
|
2008-04-06 03:11:32 +02:00
|
|
|
else
|
2008-04-08 08:46:29 +02:00
|
|
|
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
|
2008-04-06 03:11:32 +02:00
|
|
|
fi
|
|
|
|
|