"Fossies" - the Fresh Open Source Software Archive

Member "evolution-mapi-3.46.1/cmake/verify-pre-dist.sh" (2 Dec 2022, 582 Bytes) of package /linux/misc/evolution-mapi-3.46.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 git diff --no-patch --exit-code HEAD
    4 
    5 if [ ! $? -eq 0 ]; then
    6     echo "" 1>&2
    7     echo "***********************************************************************" 1>&2
    8     echo "  There are uncommitted changes which will not be part of the tarball  " 1>&2
    9     echo "***********************************************************************" 1>&2
   10     echo "" 1>&2
   11 
   12     if [ "$SKIP_COMMIT_TEST" = "1" ]; then
   13         echo "(Failed commit test skipped due to SKIP_COMMIT_TEST=1 being set.)" 1>&2
   14         exit 0
   15     else
   16         echo "(This test can be skipped when SKIP_COMMIT_TEST=1 is set.)" 1>&2
   17     fi
   18     exit 1
   19 fi