diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-02-15 19:04:56 +0100 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-02-15 19:04:56 +0100 |
commit | f3b944ee7e771c9747e6a95bbe5bcc3e6e73646b (patch) | |
tree | b203254cea3ccb792406c2207fc7a9b2a44e4105 /release-process | |
parent | 7dc5f827a629b06afcba5a1a52184084c5214c98 (diff) |
Tidy quickrelease
Diffstat (limited to 'release-process')
-rwxr-xr-x | release-process/scripts/quickrelease | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/release-process/scripts/quickrelease b/release-process/scripts/quickrelease index dd16fa0f5..898442dad 100755 --- 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 +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 -. version.sh +. ./version.sh 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 |