~vcs-imports/kupfer/master-new

« back to all changes in this revision

Viewing changes to makedist.sh

  • Committer: Ulrik Sverdrup
  • Date: 2010-02-11 16:55:26 UTC
  • Revision ID: git-v1:d79fd019b3938a35b97bdda5dc274c1bd2bf4710
Create release tarballs with ./waf gitdist, implemented on top of git-archive

./waf gitdist creates a release tarball with git-archive, writing in
extra-dist files (waf and version stamp file) manually.

./waf dist  is the original waf dist process left untouched (for used
in tarball -> tarball packing).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# I use this script to make the release tarballs
4
 
# It takes just a fresh clone of the repository, copies
5
 
# the waf binary in, and packages it up.
6
 
# Thus the dist ball is reasonably clean
7
 
 
8
 
set -x
9
 
set -e
10
 
 
11
 
OLDPWD=$PWD
12
 
TMPDIR="/tmp/$(basename $PWD)-dist"
13
 
 
14
 
test -e "$TMPDIR" && echo "$TMPDIR exists" && exit 2
15
 
echo Using $TMPDIR
16
 
 
17
 
git clone . "$TMPDIR"
18
 
cp waf "$TMPDIR"
19
 
 
20
 
cd "$TMPDIR"
21
 
./waf dist
22
 
cp -vi *.tar.gz "$OLDPWD"
23
 
rm -r "$TMPDIR"