summaryrefslogtreecommitdiff
path: root/make-dist
blob: 41baa209417ca16c7fd4afe956de893f36dffa08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh -e

id="$(git rev-parse --verify "${1:-@}^{commit}")"

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 "$id"

./git-set-file-times

./bootstrap

./configure --enable-maintainer-mode

make -s $j distcheck

if git describe --exact-match --match='v*' >/dev/null; then
	make -s $j news-check
else
	echo 'SKIP: make news-check'
fi

./make-dsc strace-*.tar.gz > ../strace.dsc

cat strace.spec > ../strace.spec

mv -f strace-*.tar.[gx]z ..