Commit 3b01d255 authored by Thomas Haller's avatar Thomas Haller

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.
parent a75f358b
......@@ -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,19 +78,21 @@ if [[ $IGNORE_DIRTY != 1 ]]; then
fi
fi
./autogen.sh --enable-gtk-doc || die "Error autogen.sh"
if [[ $QUICK == 1 ]]; then
make -C shared || die "Error make -C shared"
make -C introspection || die "Error make -C introspection"
make -C libnm-core || die "Error make -C libnm-core"
make -C libnm || die "Error make -C libnm"
make -C libnm-util || die "Error make -C libnm-util"
make -C libnm-glib || die "Error make -C libnm-glib"
make dist || die "Error make distcheck"
else
make -j 10 || die "Error make"
make distcheck || die "Error make distcheck"
if [[ $NO_BUILD != 1 ]]; then
./autogen.sh --enable-gtk-doc || die "Error autogen.sh"
if [[ $QUICK == 1 ]]; then
make -C shared || die "Error make -C shared"
make -C introspection || die "Error make -C introspection"
make -C libnm-core || die "Error make -C libnm-core"
make -C libnm || die "Error make -C libnm"
make -C libnm-util || die "Error make -C libnm-util"
make -C libnm-glib || die "Error make -C libnm-glib"
make dist || die "Error make distcheck"
else
make -j 10 || die "Error make"
make distcheck || die "Error make distcheck"
fi
fi
export BUILDTYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment