3 # Copyright (c) 2009-2018 The strace developers.
6 # SPDX-License-Identifier: LGPL-2.1-or-later
8 id="$(git rev-parse --verify "${1:-@}^{commit}")"
10 j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
12 distdir=strace-dist-$$
13 abs_distdir="`pwd`/$distdir"
14 trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
17 git clone -q -n -s .git "$distdir"
26 ./configure --enable-maintainer-mode
30 if git describe --exact-match --match='v*' >/dev/null; then
33 echo 'SKIP: make news-check'
36 ./make-dsc strace-*.tar.gz > ../strace.dsc
38 cat strace.spec > ../strace.spec
40 mv -f strace-*.tar.[gx]z ..