blob: a4e598c8b981864e40a287622f14ac67593810f7 [file] [log] [blame]
Dmitry V. Levinac260682009-10-09 23:15:16 +00001#!/bin/sh -e
2
Roland McGrath150759b2009-10-11 16:30:57 -07003tag="${1:-master}"
4
5j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
6
7distdir=strace-dist-$$
8abs_distdir="`pwd`/$distdir"
9trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
10
11set -x
12git clone -q -n -s .git "$distdir"
13
14cd $distdir
15git checkout -f "$tag"
16
Dmitry V. Levinac260682009-10-09 23:15:16 +000017./git-set-file-times
Roland McGrath150759b2009-10-11 16:30:57 -070018
19autoreconf -i -f
20
Dmitry V. Levinac260682009-10-09 23:15:16 +000021./configure --enable-maintainer-mode
Roland McGrath150759b2009-10-11 16:30:57 -070022
23make -s $j distcheck
24
25mv -f *.tar.bz2 ..