Commit 57e27a4e authored by Michal Čihař's avatar Michal Čihař

Add script for setting version

parent 24985f38
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment