1 #!/bin/sh -e 2 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 17 ./git-set-file-times 18 19 ./bootstrap 20 21 ./configure --enable-maintainer-mode 22 23 make -s $j distcheck 24 make -s $j news-check 25 26 mv -f strace-*.tar.xz .. 27