Dmitry V. Levin | ac26068 | 2009-10-09 23:15:16 +0000 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | |
Roland McGrath | 150759b | 2009-10-11 16:30:57 -0700 | [diff] [blame] | 3 | tag="${1:-master}" |
| 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 "$tag" |
| 16 | |
Dmitry V. Levin | ac26068 | 2009-10-09 23:15:16 +0000 | [diff] [blame] | 17 | ./git-set-file-times |
Roland McGrath | 150759b | 2009-10-11 16:30:57 -0700 | [diff] [blame] | 18 | |
Dmitry V. Levin | 3e69bdf | 2014-04-25 22:52:06 +0000 | [diff] [blame] | 19 | ./bootstrap |
Roland McGrath | 150759b | 2009-10-11 16:30:57 -0700 | [diff] [blame] | 20 | |
Dmitry V. Levin | ac26068 | 2009-10-09 23:15:16 +0000 | [diff] [blame] | 21 | ./configure --enable-maintainer-mode |
Roland McGrath | 150759b | 2009-10-11 16:30:57 -0700 | [diff] [blame] | 22 | |
| 23 | make -s $j distcheck |
Dmitry V. Levin | 79ccf43 | 2016-06-07 09:17:12 +0000 | [diff] [blame] | 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 |
Roland McGrath | 150759b | 2009-10-11 16:30:57 -0700 | [diff] [blame] | 30 | |
Dmitry V. Levin | 2afa76e | 2016-06-08 00:32:22 +0000 | [diff] [blame] | 31 | ./make-dsc strace-*.tar.gz > ../strace.dsc |
| 32 | |
| 33 | cat strace.spec > ../strace.spec |
| 34 | |
| 35 | mv -f strace-*.tar.[gx]z .. |