QGIS/scripts/make-tarball.sh
2014-11-12 17:43:16 +01:00

29 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
###########################################################################
# make-tarball.sh
# ---------------------
# Date : October 2011
# Copyright : (C) 2011 by Tim Sutton
# Email : tim at kartoza dot com
###########################################################################
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
###########################################################################
# A simple script to create a release tarball
#
# Tim Sutton, October 2011
TAG_OR_BRANCH="master"
VERSION="1.8.0-dev"
git archive --format=tar --prefix=qgis-${VERSION}/ ${TAG_OR_BRANCH=} | \
bzip2 > /tmp/qgis-${VERSION}.tar.bz2
md5sum /tmp/qgis-${VERSION}.tar.bz2 > \
/tmp/qgis-${VERSION}.tar.bz2.md5