contrib/rpm: add --no-build option to build_clean.sh

Option to skip building the source package. Useful if you already
have a source tarball from a previous run.
This commit is contained in:
Thomas Haller 2016-02-02 16:05:23 +01:00
parent a75f358be5
commit 3b01d25561

View file

@ -31,6 +31,7 @@ cd "$GITDIR" || die "could not change to $GITDIR"
IGNORE_DIRTY=0
GIT_CLEAN=0
QUICK=0
NO_BUILD=0
for A; do
case "$A" in
@ -50,6 +51,10 @@ for A; do
-S|--srpm)
BUILDTYPE=SRPM
;;
-N|--no-build)
NO_BUILD=1
IGNORE_DIRTY=1
;;
*)
usage
die "Unexpected argument \"$A\""
@ -73,6 +78,7 @@ if [[ $IGNORE_DIRTY != 1 ]]; then
fi
fi
if [[ $NO_BUILD != 1 ]]; then
./autogen.sh --enable-gtk-doc || die "Error autogen.sh"
if [[ $QUICK == 1 ]]; then
@ -87,6 +93,7 @@ else
make -j 10 || die "Error make"
make distcheck || die "Error make distcheck"
fi
fi
export BUILDTYPE