diff options
-rwxr-xr-x | releasescript/makerelease.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/releasescript/makerelease.sh b/releasescript/makerelease.sh index c07c488..49b42a8 100755 --- a/releasescript/makerelease.sh +++ b/releasescript/makerelease.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e if [ -z "$1" ]; then echo "Usage: $0 version-tag" @@ -14,32 +14,33 @@ umask 0022 # of the autotools files in the parent dir. OUTPUTDIR=`pwd` TMPDIR="/tmp/bindfs-build" -mkdir $TMPDIR || exit 1 +rm -Rf $TMPDIR +mkdir $TMPDIR pushd "$TMPDIR" # Download the release source -git clone "$REPO_URL" "bindfs-$VERSION" || exit 1 +git clone "$REPO_URL" "bindfs-$VERSION" # Prepare the source tree: # - check out the release tag # - remove .git # - run autotools pushd "bindfs-$VERSION" -git checkout "$VERSION" || exit 1 +git checkout "$VERSION" rm -Rf .git -./autogen.sh || exit 1 +./autogen.sh rm -Rf autom4te.cache popd # Make the source package -tar cvzf "bindfs-${VERSION}.tar.gz" "bindfs-$VERSION" || exit 1 +tar cvzf "bindfs-${VERSION}.tar.gz" "bindfs-$VERSION" # Get the change log and man-page cp "bindfs-$VERSION/ChangeLog" ./bindfs-ChangeLog.txt cp "bindfs-$VERSION/src/bindfs.1" ./bindfs.1 # Create the HTML man page -rman -f HTML -r "" bindfs.1 > bindfs.1.html || exit 1 +rman -f HTML -r "" bindfs.1 > bindfs.1.html # Compile the source pushd "bindfs-$VERSION" |