blob: fffedfb095f27ee8ab2551e2dc7cbb360dabdfb3 [file] [log] [blame]
Elliott Hughes5dec78d2014-02-26 15:56:23 -08001#!/bin/sh -e
2
3tag="${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
17./git-set-file-times
18
19autoreconf -i -f
20
21./configure --enable-maintainer-mode
22
23make -s $j distcheck
24make -s $j news-check
25
26mv -f strace-*.tar.xz ..