mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-07 00:31:11 +00:00
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:
parent
a75f358be5
commit
3b01d25561
|
@ -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,9 +78,10 @@ if [[ $IGNORE_DIRTY != 1 ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
./autogen.sh --enable-gtk-doc || die "Error autogen.sh"
|
||||
if [[ $NO_BUILD != 1 ]]; then
|
||||
./autogen.sh --enable-gtk-doc || die "Error autogen.sh"
|
||||
|
||||
if [[ $QUICK == 1 ]]; then
|
||||
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"
|
||||
|
@ -83,9 +89,10 @@ if [[ $QUICK == 1 ]]; then
|
|||
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
|
||||
else
|
||||
make -j 10 || die "Error make"
|
||||
make distcheck || die "Error make distcheck"
|
||||
fi
|
||||
fi
|
||||
|
||||
export BUILDTYPE
|
||||
|
|
Loading…
Reference in a new issue