diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-06-04 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-06-04 08:00:00 +0000 |
commit | a7c47f70625b5d70d46da95539db796e38c3b59a (patch) | |
tree | 656fdba8dac50adaa179d6d8fc750a1486dd0bcc /maint | |
parent | 8f03160e9d6736102053a2ea07aee2ce66fad72b (diff) | |
download | pam-a7c47f70625b5d70d46da95539db796e38c3b59a.tar.gz pam-a7c47f70625b5d70d46da95539db796e38c3b59a.tar.bz2 pam-a7c47f70625b5d70d46da95539db796e38c3b59a.zip |
maint: introduce make-dist
* maint/make-dist: New script for preparing release tarballs.
Diffstat (limited to 'maint')
-rwxr-xr-x | maint/make-dist | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/maint/make-dist b/maint/make-dist new file mode 100755 index 00000000..5457efec --- /dev/null +++ b/maint/make-dist @@ -0,0 +1,32 @@ +#!/bin/sh -e +# +# Copyright (c) 2009-2020 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later + +id="$(git rev-parse --verify "${1:-@}^{commit}")" + +j=-j`nproc 2> /dev/null` || j= + +distdir=Linux-PAM-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 config advice.detachedHead false +git checkout -f "$id" + +./autogen.sh + +DISTCHECK_CONFIGURE_FLAGS='--disable-dependency-tracking --enable-Werror' +export DISTCHECK_CONFIGURE_FLAGS +./configure $DISTCHECK_CONFIGURE_FLAGS + +make -s $j distcheck +make -s $j releasedocs + +mv -f Linux-PAM-*.tar.* .. |