summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-10-11 16:30:57 -0700
committerRoland McGrath <roland@redhat.com>2009-10-11 16:30:57 -0700
commit150759b7bffc6c1aa8095484e1694e008c643c9e (patch)
treee5a9c5af37b5fa86a31a56f2ec08440d7f022883
parentffda2d393fce6261fb108aa3eee3eb19c42a4f31 (diff)
downloadstrace-150759b7bffc6c1aa8095484e1694e008c643c9e.tar.gz
strace-150759b7bffc6c1aa8095484e1694e008c643c9e.tar.bz2
strace-150759b7bffc6c1aa8095484e1694e008c643c9e.tar.xz
* make-dist: Clean up.
-rwxr-xr-xmake-dist25
1 files changed, 21 insertions, 4 deletions
diff --git a/make-dist b/make-dist
index 6512570..a4e598c 100755
--- a/make-dist
+++ b/make-dist
@@ -1,8 +1,25 @@
#!/bin/sh -e
-git clone -s .git tmpdir
-cd tmpdir
+tag="${1:-master}"
+
+j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
+
+distdir=strace-dist-$$
+abs_distdir="`pwd`/$distdir"
+trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
+
+set -x
+git clone -q -n -s .git "$distdir"
+
+cd $distdir
+git checkout -f "$tag"
+
./git-set-file-times
-autoreconf -i
+
+autoreconf -i -f
+
./configure --enable-maintainer-mode
-make distcheck
+
+make -s $j distcheck
+
+mv -f *.tar.bz2 ..