summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-04-23 15:15:04 +0200
committerRemi Collet <remi@php.net>2024-04-23 15:15:04 +0200
commit9976999105048d7cb4c99686b46bbe7a2cb1e43b (patch)
tree00aaabaf2e94e32348bb9f001a41b17d5d07d1e1 /mockit
parent9e9e0d7dcdc77e261bc5d944c2121cef493b3e2b (diff)
tweak output with RPM name
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit20
1 files changed, 10 insertions, 10 deletions
diff --git a/mockit b/mockit
index b99ed6a..7adaa82 100755
--- a/mockit
+++ b/mockit
@@ -2,9 +2,9 @@
if [ "$2" = "" ]; then
echo -e "\nusage: $0 [ options ] SRPM distro [ min_ver [, max_ver [, mock_options ]]]\n"
+ echo -e "\t--redis store build command in redis queue"
echo -e "\t--nobase | --scl only build SCL packages"
- echo -e "\t--noscl | --base only build base packages"
- echo -e "\t--redis store build command in redis queue\n"
+ echo -e "\t--noscl | --base only build base packages\n"
exit 0
fi
@@ -13,14 +13,6 @@ BUILD_BASE=1
BUILD_SCLS=1
REDIS=0
-if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then
- BUILD_BASE=0
- shift
-fi
-if [ "$1" == "--noscl" -o "$1" == "--base" ]; then
- BUILD_SCLS=0
- shift
-fi
if [ "$1" == "--redis" ]; then
CHECK=$(redis-cli ping)
[ "$CHECK" = "PONG" ] || exit 1
@@ -28,6 +20,14 @@ if [ "$1" == "--redis" ]; then
shift
fi
+if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then
+ BUILD_BASE=0
+ shift
+elif [ "$1" == "--noscl" -o "$1" == "--base" ]; then
+ BUILD_SCLS=0
+ shift
+fi
+
SRPM=$1
DIST=$2
shift 2