Commit fe1c71a1 authored by Michal Čihař's avatar Michal Čihař

Move version to weblate module

parent 1922a370
......@@ -8,7 +8,7 @@ if [ "x$1" = "x--help" -o "x$1" = "x-h" ] ; then
fi
# Grab version
version=`python -c 'import trans; print trans.VERSION'`
version=`python -c 'import weblate; print weblate.VERSION'`
namever=weblate-$version
# What are we going to build?
......
......@@ -6,7 +6,7 @@ if [ -z "$1" ] ; then
exit 1
fi
sed -i "s/VERSION =.*/VERSION = '$1'/" trans/__init__.py
sed -i "s/VERSION =.*/VERSION = '$1'/" weblate/__init__.py
sed -i "s/version =.*/version = '$1'/" docs/conf.py
sed -i "s/Version: .*/Version: $1/" weblate.spec
......
#!/bin/sh
set -e
VERSION=`python -c 'import trans; print trans.VERSION'`
VERSION=`python -c 'import weblate; print weblate.VERSION'`
git tag -s weblate-$VERSION -m "Version $VERSION"
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