summaryrefslogtreecommitdiff
path: root/release-process/scripts/quickrelease
blob: dd16fa0f5b6685629d4e479b7e9937d6332ee735 (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
25
26
27
28
29
30
#!/bin/sh
#
# A really dumb script for making a quick tarball of Exim

set -e

OWD=$(pwd -P)

GWD=$(git rev-parse --git-dir)

TWD=$(mktemp -d -t exim) || exit 1
echo $TWD
cd $TWD

git clone $GWD

cd exim/src/src
../scripts/reversion
. 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
echo $EXIM.tar.gz