]> granicus.if.org Git - strace/blob - make-dist
Add PAF_ARRAY_TRUNCATED flag for print_array_ex
[strace] / make-dist
1 #!/bin/sh -e
2 #
3 # Copyright (c) 2009-2018 The strace developers.
4 # All rights reserved.
5 #
6 # SPDX-License-Identifier: LGPL-2.1-or-later
7
8 id="$(git rev-parse --verify "${1:-@}^{commit}")"
9
10 j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
11
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
15
16 set -x
17 git clone -q -n -s .git "$distdir"
18
19 cd $distdir
20 git checkout -f "$id"
21
22 ./git-set-file-times
23
24 ./bootstrap
25
26 ./configure --enable-maintainer-mode
27
28 make -s $j distcheck
29
30 if git describe --exact-match --match='v*' >/dev/null; then
31         make -s $j news-check
32 else
33         echo 'SKIP: make news-check'
34 fi
35
36 ./make-dsc strace-*.tar.gz > ../strace.dsc
37
38 cat strace.spec > ../strace.spec
39
40 mv -f strace-*.tar.[gx]z ..