~vcs-imports/kupfer/master-new

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# I use this script to make the release tarballs
# It takes just a fresh clone of the repository, copies
# the waf binary in, and packages it up.
# Thus the dist ball is reasonably clean

set -x
set -e

OLDPWD=$PWD
TMPDIR="/tmp/$(basename $PWD)-dist"

test -e "$TMPDIR" && echo "$TMPDIR exists" && exit 2
echo Using $TMPDIR

git clone . "$TMPDIR"
cp waf "$TMPDIR"

cd "$TMPDIR"
./waf dist
cp -vi *.tar.gz "$OLDPWD"
rm -r "$TMPDIR"