]> granicus.if.org Git - strace/blob - make-dist
rtnl_rule: enhance FRA_TABLE decoding
[strace] / make-dist
1 #!/bin/sh -e
2
3 id="$(git rev-parse --verify "${1:-@}^{commit}")"
4
5 j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
6
7 distdir=strace-dist-$$
8 abs_distdir="`pwd`/$distdir"
9 trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
10
11 set -x
12 git clone -q -n -s .git "$distdir"
13
14 cd $distdir
15 git checkout -f "$id"
16
17 ./git-set-file-times
18
19 ./bootstrap
20
21 ./configure --enable-maintainer-mode
22
23 make -s $j distcheck
24
25 if git describe --exact-match --match='v*' >/dev/null; then
26         make -s $j news-check
27 else
28         echo 'SKIP: make news-check'
29 fi
30
31 ./make-dsc strace-*.tar.gz > ../strace.dsc
32
33 cat strace.spec > ../strace.spec
34
35 mv -f strace-*.tar.[gx]z ..