summaryrefslogtreecommitdiff
path: root/release-process/scripts/quickrelease
blob: 898442dad1e9726183cc7140d0b8460f75197ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# A really dumb script for making a quick tarball of Exim

set -e
trap 'test -n "$TMP_DIR" && rm -r "$TMP_DIR"' EXIT

OLD_DIR=$(pwd)
GIT_DIR=$(git rev-parse --show-toplevel)
TMP_DIR=$(mktemp -d -t exim-quickrelease.XXXXXX)

cd $TMP_DIR
git clone $GIT_DIR

cd exim/src/src
../scripts/reversion
. ./version.sh
EXIM=exim-${EXIM_RELEASE_VERSION}${EXIM_VARIANT_VERSION}

cd ../..
mv -v src $EXIM
tar czf $EXIM.tar.gz $EXIM
mv $EXIM.tar.gz $OLD_DIR
echo $EXIM.tar.gz