3 # When run from the top-level repository, performs a complete clean
4 # and maintainer-mode rebuild of the FireHOL package.
6 if [ ! -f .gitignore -o ! -f configure.ac -o ! -x autogen.sh ]
8 echo "Run as ./packaging/git-build from an autotools git repository"
12 # If we are genuinely in a git repo, try to clean it up, otherwise
13 # just make the assumption
16 if [ -n "$TRAVIS_TAG" ]
18 echo "Checking we have a good signature during CI build..."
19 echo "Checking tag: $TRAVIS_TAG"
20 git tag -v "$TRAVIS_TAG" 2>&1 | tee /tmp/tagcheck
21 grep -iq "gpg. good signature" /tmp/tagcheck
30 clean=$(git status -s | grep "^?")
36 echo "Warning: this script runs: git clean -d -f -x"
37 echo " ensure all required ?? files are added, then re-run with '-ok'"
38 git status -s | grep '^?'
50 ./configure --enable-maintainer-mode