summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-14 07:49:51 +0200
committerThomas Haller <thaller@redhat.com>2018-09-14 08:56:43 +0200
commit5894da67dc040fccd40c014ab73f31e1d9e1e661 (patch)
tree5106a14a83e8b0fcafeffa5e7b69f208c6749de7
parent02464c052e2f8a1e88b012e0a29f5f66fce310ad (diff)
downloadNetworkManager-5894da67dc040fccd40c014ab73f31e1d9e1e661.tar.gz
contrib/rpm: add --release option to build_clean.sh script
The correct way to create a tarball for release is ./contrib/fedora/rpm/build_clean.sh -r Just ensure to issue this from a clean shell environment.
-rwxr-xr-xcontrib/fedora/rpm/build_clean.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh
index 1bf932f5cb..c6d08f538c 100755
--- a/contrib/fedora/rpm/build_clean.sh
+++ b/contrib/fedora/rpm/build_clean.sh
@@ -24,6 +24,7 @@ usage() {
echo " -w|--with \$OPTION: pass --with \$OPTION to rpmbuild. For example --with debug"
echo " -W|--without \$OPTION: pass --without \$OPTION to rpmbuild. For example --without debug"
echo " -s|--snapshot TEXT: use TEXT as the snapshot version for the new package (overwrites \$NM_BUILD_SNAPSHOT environment)"
+ echo " -r|--release: built a release tarball (this option must be alone)"
}
@@ -44,6 +45,8 @@ WITH_LIST=()
SOURCE_FROM_GIT=0
SNAPSHOT="$NM_BUILD_SNAPSHOT"
+NARGS=$#
+
while [[ $# -gt 0 ]]; do
A="$1"
shift
@@ -55,6 +58,11 @@ while [[ $# -gt 0 ]]; do
-f|--force)
IGNORE_DIRTY=1
;;
+ -r|--release)
+ [[ $NARGS -eq 1 ]] || die "--release option must be alone"
+ export NMTST_CHECK_GTK_DOC=1
+ BUILDTYPE=SRPM
+ ;;
-c|--clean)
GIT_CLEAN=1
;;