[evolution-data-server] Hard-break `make dist` when there are uncommitted changes



commit 6ee1aee226f26f3f7c8c1e308ed022256452e3fb
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 24 14:24:09 2016 +0200

    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.

 cmake/verify-pre-dist.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/cmake/verify-pre-dist.sh b/cmake/verify-pre-dist.sh
index b311e72..6606c7f 100755
--- a/cmake/verify-pre-dist.sh
+++ b/cmake/verify-pre-dist.sh
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]