Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 55 lines (41 sloc) 1.015 kb
#!/bin/sh
set -e
if [ "x$1" = "x--help" -o "x$1" = "x-h" ] ; then
echo "Usage: ./scripts/create-release [--tag|TREE-ISH]"
exit 1
fi
# Grab version
version=`python -c 'import weblate; print weblate.VERSION'`
namever=weblate-$version
# What are we going to build?
if [ -z "$1" ] ; then
rev=HEAD
else
if [ "x$1" = "x--tag" ] ; then
rev=$namever
git tag -s $rev -m "Version $VERSION"
else
rev=$1
fi
fi
# Configure build dir
build_dir=build/weblate
mkdir -p $build_dir
# Export files
git archive --format=tar $rev | tar xf - -C $build_dir
cd $build_dir
# Compile po files
../../scripts/generate-locales
# Cleanup possible byte compiled files (from above step)
find . -name '*.py[co]' -delete
cd ..
# Correct name of directory
mv weblate $namever
# Build tarballs
tar cf $namever.tar $namever
gzip < $namever.tar > ../$namever.tar.gz
bzip2 < $namever.tar > ../$namever.tar.bz2
xz < $namever.tar > ../$namever.tar.xz
# Remove build directory
cd ..
rm -rf build
Jump to Line
Something went wrong with that request. Please try again.