Improvements for building

This commit is contained in:
mboelen 2014-10-26 23:34:34 +01:00
parent 46de3f8d99
commit 14f2629d3c
1 changed files with 8 additions and 4 deletions

View File

@ -189,13 +189,17 @@
#fi #fi
# Create tarball # Create tarball
tar -C ${MYWORKDIR} --exclude=debian --exclude=README.md --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null
if [ -f ${TARBALL} ]; then if [ -f ${TARBALL} ]; then
echo "[V] Tarball created" echo "Tarball already exists for this version, not overwriting it"
else else
echo "[X] Tarball ${TARBALL} could not be created" tar -C ${MYWORKDIR} --exclude=debian --exclude=README.md --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null
ExitFatal if [ -f ${TARBALL} ]; then
echo "[V] Tarball created"
else
echo "[X] Tarball ${TARBALL} could not be created"
ExitFatal
fi
fi fi
TARBALL_MD5=`md5sum ${TARBALL}` TARBALL_MD5=`md5sum ${TARBALL}`