do_release: Add '--nocheck' option.

Changes build command from 'make distcheck' to 'make dist'.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5344 4ea69e1a-61f1-4043-bf83-b5c94c648137
pull/86/merge
chrfranke 7 months ago
parent bb5a3421c9
commit a1c0bee2ed
  1. 3
      smartmontools/ChangeLog
  2. 16
      smartmontools/do_release

@ -2,6 +2,9 @@ $Id$
2022-03-02 Christian Franke <franke@computer.org>
do_release: Add '--nocheck' option.
Changes build command from 'make distcheck' to 'make dist'.
do_release: Add '--checkout' option.
Checks out a new working copy suitable for releases.

@ -24,7 +24,7 @@ usage()
{
cat <<EOF
Usage: $myname --checkout[=URL] DESTDIR
$myname [--commit] RC[1-9]|FINAL
$myname [--nocheck] [--commit] RC[1-9]|FINAL
EOF
exit 1
}
@ -50,11 +50,15 @@ fi
# Release ...
COMMIT=
DIST=distcheck
RC=
case "$1" in
while true; do case "$1" in
--commit) COMMIT=yes; shift ;;
esac
--nocheck) DIST=dist; shift ;;
*-) usage ;;
*) break ;;
esac; done
case "$*" in
RC[1-9]) RC="$1" ;;
@ -138,7 +142,7 @@ fi
mkdir build
cd build
../configure
make distcheck || exit 1
make $DIST || exit 1
make maintainer-clean
cd ..
@ -149,13 +153,13 @@ rm -rvf build
md5sum $TARFILE > $TARFILE.md5
set +v
# Sign tarball
if [ -n "$KEYID" ] && gpg --list-secret-keys $KEYID >/dev/null 2>/dev/null; then
gpg --default-key $KEYID --armor --detach-sign ./smartmontools-$VERSIONRC.tar.gz
fi
set +v
# Update configure.ac only after trunk releases
if [ -z "$RC" -a "$DIRPAT" = "trunk" ]; then
# Comment out timestamp

Loading…
Cancel
Save