diff --git a/scripts/set-version b/scripts/set-version new file mode 100755 index 000000000..3d4dd50a0 --- /dev/null +++ b/scripts/set-version @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ -z "$1" ] ; then + echo 'Usage: ./scripts/set-version VERSION' + exit 1 +fi + +sed -i "s/VERSION =.*/VERSION = '$1'/" trans/__init__.py + +# Update ChangeLog +tmp=`mktemp` +cp ChangeLog $tmp +cat > ChangeLog <> ChangeLog < $tmp +rm $tmp