git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying
[users/jgh/exim.git]
/
release-process
/
scripts
/
quickrelease
diff --git
a/release-process/scripts/quickrelease
b/release-process/scripts/quickrelease
index dd16fa0f5b6685629d4e479b7e9937d6332ee735..898442dad1e9726183cc7140d0b8460f75197ac6 100755
(executable)
--- a/
release-process/scripts/quickrelease
+++ b/
release-process/scripts/quickrelease
@@
-3,28
+3,22
@@
# A really dumb script for making a quick tarball of Exim
set -e
# A really dumb script for making a quick tarball of Exim
set -e
+trap 'test -n "$TMP_DIR" && rm -r "$TMP_DIR"' EXIT
-OWD=$(pwd -P)
+OLD_DIR=$(pwd)
+GIT_DIR=$(git rev-parse --show-toplevel)
+TMP_DIR=$(mktemp -d -t exim-quickrelease.XXXXXX)
-GWD=$(git rev-parse --git-dir)
-
-TWD=$(mktemp -d -t exim) || exit 1
-echo $TWD
-cd $TWD
-
-git clone $GWD
+cd $TMP_DIR
+git clone $GIT_DIR
cd exim/src/src
../scripts/reversion
cd exim/src/src
../scripts/reversion
-. version.sh
+.
./
version.sh
EXIM=exim-${EXIM_RELEASE_VERSION}${EXIM_VARIANT_VERSION}
cd ../..
EXIM=exim-${EXIM_RELEASE_VERSION}${EXIM_VARIANT_VERSION}
cd ../..
-mv src $EXIM
-tar cfz $EXIM.tar.gz $EXIM
-mv $EXIM src
-
-cd $OWD
-mv $TWD/exim/$EXIM.tar.gz .
-rm -rf $EXIM
+mv -v src $EXIM
+tar czf $EXIM.tar.gz $EXIM
+mv $EXIM.tar.gz $OLD_DIR
echo $EXIM.tar.gz
echo $EXIM.tar.gz