Commit 32b806d0 authored by Michal Čihař's avatar Michal Čihař

Script for creating release

parent 21724ff1
#!/bin/sh
if [ "x$1" = "x--help" -o "x$1" = "x-h" ] ; then
echo "Usage: ./scripts/create-release [--tag|TREE-ISH]"
exit 1
fi
version=`python -c 'import trans; print trans.VERSION'`
if [ -z "$1" ] ; then
rev=HEAD
else
if [ "x$1" = "x--tag" ] ; then
rev=weblate-$version
git tag -s $rev -m "Version $VERSION"
else
rev=$1
fi
fi
git archive --format=tar --prefix=weblate-$version/ $rev | xz > weblate-$version.tar.xz
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