Add script for setting version

This commit is contained in:
Michal Čihař 2012-03-06 16:18:05 +01:00
parent 24985f38f1
commit 57e27a4e31

21
scripts/set-version Executable file
View File

@ -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 <<EOT
weblate $1
-----------
Relased on ? 2012.
EOT
cat >> ChangeLog < $tmp
rm $tmp