Hard-break make dist when there are uncommitted changes

Similar to NEWS-file test, add also SKIP_COMMIT_TEST=1 to be able to skip
any such issue. This helps to notice uncommitted changes before the tarball
is created.
This commit is contained in:
Milan Crha
2016-10-24 14:24:09 +02:00
parent b14222e7fc
commit aabb044693

View File

@ -8,4 +8,12 @@ if [ ! $? -eq 0 ]; then
echo " There are uncommitted changes which will not be part of the tarball " 1>&2
echo "***********************************************************************" 1>&2
echo "" 1>&2
if [ "$SKIP_COMMIT_TEST" = "1" ]; then
echo "(Failed commit test skipped due to SKIP_COMMIT_TEST=1 being set.)" 1>&2
exit 0
else
echo "(This test can be skipped when SKIP_COMMIT_TEST=1 is set.)" 1>&2
fi
exit 1
fi