Files
packstack/bin/release.sh
Martin Magr eaba97fb25 Added submodule update to release.sh
Change-Id: I50314153673bb1e061c80e369214ed25ac3bd5f1
2013-06-05 13:43:14 +02:00

18 lines
418 B
Bash
Executable File

#!/usr/bin/env bash
#
git reset --hard
git submodule update --init
git status -s | grep "." && ( echo "Contains unknown files" ; exit 1 )
if [ "$1" = "release" ] ; then
sed -i -e 's/FINAL=False/FINAL=True/g' packstack/version.py
SNAPTAG=""
else
SNAPTAG=$(git log --oneline | wc -l)
fi
python setup.py setopt -o tag_build -s "$SNAPTAG" -c egg_info
python setup.py sdist
git checkout packstack/version.py