Commit 40a3e200 authored by Thomas Haller's avatar Thomas Haller

contrib/rpm: add --quick argument to script

Before, always required building all NetworkManager
and doing another `make distcheck` before calling rpmbuild.

That is still a good idea, to ensure that we get a proper build.
For some quick testing however, lets speed this up with a new
--dist argument that only calls `make dist`.
Signed-off-by: Thomas Haller's avatarThomas Haller <>
parent d2be2ac7
......@@ -7,13 +7,14 @@ die() {
usage() {
echo "USAGE: $0 [-h|--help|-?|help] [-f|--force] [-c|--clean]"
echo "USAGE: $0 [-h|--help|-?|help] [-f|--force] [-c|--clean] [-Q|--quick]"
echo "Does all the steps from a clean working directory to an RPM of NetworkManager"
echo "Options:"
echo " --force: force build, even if working directory is not clean and has local modifications"
echo " --clean: run \`git-clean -fdx :/\` before build"
echo " --quick: only run \`make dist\` instead of \`make distcheck\`"
......@@ -28,6 +29,7 @@ cd "$GITDIR" || die "could not change to $GITDIR"
for A; do
case "$A" in
......@@ -41,6 +43,9 @@ for A; do
die "Unexpected argument \"$A\""
......@@ -66,9 +71,14 @@ fi
./ --enable-gtk-doc || die "Error"
make -j 10 || die "Error make"
make distcheck || die "Error make distcheck"
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"
make -j 10 || die "Error make"
make distcheck || die "Error make distcheck"
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