strace/make-dist
Dmitry V. Levin 2afa76e29a make-dist: generate strace-*.tar.gz, strace.dsc, and strace.spec
Change make-dist to generate strace-*.tar.gz, strace.dsc,
and strace.spec in addition to strace-*.tar.xz.

* configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
* make-dsc: New file.
* make-dist: Use it.
* .gitignore: Add strace-*.tar.gz, strace.dsc, and strace.spec.
2016-06-08 09:28:25 +00:00

36 lines
605 B
Bash
Executable File

#!/bin/sh -e
tag="${1:-master}"
j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
distdir=strace-dist-$$
abs_distdir="`pwd`/$distdir"
trap 'chmod -Rf u+w $abs_distdir; rm -rf $abs_distdir' 1 2 15 0
set -x
git clone -q -n -s .git "$distdir"
cd $distdir
git checkout -f "$tag"
./git-set-file-times
./bootstrap
./configure --enable-maintainer-mode
make -s $j distcheck
if git describe --exact-match --match='v*' >/dev/null; then
make -s $j news-check
else
echo 'SKIP: make news-check'
fi
./make-dsc strace-*.tar.gz > ../strace.dsc
cat strace.spec > ../strace.spec
mv -f strace-*.tar.[gx]z ..