Skip to content
Snippets Groups Projects
Commit e2190583 authored by chrfranke's avatar chrfranke
Browse files

do_release: Add '--nocheck' option.

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

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5344 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 810ffce4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment