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