From e2190583681fa1830cc49de3ae9b5c2abfcf215a Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Wed, 2 Mar 2022 16:22:58 +0000
Subject: [PATCH] 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
---
 smartmontools/ChangeLog  |  3 +++
 smartmontools/do_release | 16 ++++++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 85af1cc93..1b39364b0 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -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.
 
diff --git a/smartmontools/do_release b/smartmontools/do_release
index 8126183b3..a6ee6c96c 100755
--- a/smartmontools/do_release
+++ b/smartmontools/do_release
@@ -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
-- 
GitLab