1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
release=$1
if test "$release" == ""; then
echo "Give a release number"
exit 1
fi
if test `uname -s` == Linux; then
tag=TAG:bundle-5.0-r$release-linux
curtag=`egrep TAG:.*linux README`
else
tag=TAG:bundle-5.0-r$release-osx
curtag=`egrep TAG:.*osx README`
fi
if test "$curtag" = ""; then
echo "current TAG: not found in README, please add it"
exit
fi
sed -e "s/$curtag/$tag/" README > README.
mv -f README. README
echo "Tag as $tag ? (^C to cancel)"
read
echo "commiting..."
svn commit README -m $tag
|