Merge changes I3ec8a1e1,I0a2562a4,If7a8f745,I509b785a
[trojita.git] / create-release-tarball.sh
blob4b3b5cdc962d0d73025bd97cac4872ce519d3f9b
1 #!/bin/bash
3 VERSION=$1
4 if [[ "x$VERSION" == "x" ]]; then
5 echo "Usage: $0 version"
6 exit 1
7 fi
9 TAG=v$VERSION
10 git describe $TAG &>/dev/null
11 if [[ $? -ne 0 ]]; then
12 echo "Cannot find the git tag $TAG"
13 exit 1
16 git archive --format=tar --prefix=trojita-$VERSION/ $TAG \
17 LICENSE README *.pri *.pro src tests qtc_packaging -o trojita-$VERSION.tar
18 ln -s . trojita-$VERSION
19 python l10n-fetch-po-files.py
20 tar rf trojita-$VERSION.tar trojita-$VERSION/po/trojita_common_*.po
21 rm trojita-$VERSION
22 bzip2 -9 trojita-$VERSION.tar
23 gpg --armor --detach-sign trojita-$VERSION.tar.bz2