diff --git a/Installation/release.sh b/Installation/release.sh index 088abdf673..636f6726d5 100755 --- a/Installation/release.sh +++ b/Installation/release.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e TAG=1 @@ -14,9 +15,7 @@ fi VERSION="$1" -git tag | grep -q "^v$VERSION$" - -if [ "$?" == 0 ]; then +if git tag | grep -q "^v$VERSION$"; then echo "$0: version $VERSION already defined" exit 1 fi @@ -32,23 +31,22 @@ echo "$VERSION" > VERSION cat configure.ac \ | sed -e 's~AC_INIT(\[\(.*\)\], \[.*\..*\..*\], \[\(.*\)\], \[\(.*\)\], \[\(.*\)\])~AC_INIT([\1], ['$VERSION'], [\2], [\3], [\4\])~' \ - > configure.ac.tmp \ - || exit 1 + > configure.ac.tmp mv configure.ac.tmp configure.ac -./configure --enable-maintainer-mode || exit 1 -make built-sources || exit 1 -make add-maintainer || exit 1 -make add-automagic || exit 1 +./configure --enable-maintainer-mode CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib +make built-sources +make add-maintainer +make add-automagic -make || exit 1 -make examples || exit 1 -make swagger || exit 1 +make +make examples +make swagger git add -f Documentation/Examples/*.generated -cd Documentation/Books; make ||exit 1 +cd Documentation/Books; make case "$TAG" in *-alpha*|*-beta*|devel)