blob: 9accae760002210c514162a37cee9a7dae2cf287 [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
Dmitry V. Levin3e69bdf2014-04-25 22:52:06 +000019./bootstrap
Roland McGrath150759b2009-10-11 16:30:57 -070020
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
Dmitry V. Levin79ccf432016-06-07 09:17:12 +000024
25if git describe --exact-match --match='v*' >/dev/null; then
26 make -s $j news-check
27else
28 echo 'SKIP: make news-check'
29fi
Roland McGrath150759b2009-10-11 16:30:57 -070030
Dmitry V. Levin2afa76e2016-06-08 00:32:22 +000031./make-dsc strace-*.tar.gz > ../strace.dsc
32
33cat strace.spec > ../strace.spec
34
35mv -f strace-*.tar.[gx]z ..