strace/make-dist
Dmitry V. Levin 92e347b556 Add copyright headers to some files that lack them
We do our best to keep copyright headers up to date, yet
git history provides better information on this subject
and is more accurate than copyright headers.
2018-12-24 23:46:43 +00:00

41 lines
756 B
Bash
Executable File

#!/bin/sh -e
#
# Copyright (c) 2009-2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: LGPL-2.1-or-later
id="$(git rev-parse --verify "${1:-@}^{commit}")"
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 "$id"
./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 ..