summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-08-30 13:27:41 +0200
committerRemi Collet <remi@php.net>2023-08-30 13:27:41 +0200
commit070cda579b3ba88a989dd84819dcd8b0f4c4f35c (patch)
tree8c36a6a965f9c71c217b332ac2e43f2040c35fa1 /mockit
parent6016bf5362719105b4fbf79b903def6722072346 (diff)
php 8.3 as base helpers
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit18
1 files changed, 16 insertions, 2 deletions
diff --git a/mockit b/mockit
index b1619da..d2a31dd 100755
--- a/mockit
+++ b/mockit
@@ -4,9 +4,23 @@ if [ "$2" = "" ]; then
echo usage SRPM distro [ min_ver [, max_ver [, mock_options ]]]
exit 0
fi
+
+BUILD_BASE=1
+BUILD_SCLS=1
+
+if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then
+ BUILD_BASE=0
+ shift
+fi
+if [ "$1" == "--noscl" -o "$1" == "--base" ]; then
+ BUILD_SCLS=0
+ shift
+fi
+
SRPM=$1
DIST=$2
shift 2
+
if [ "$1" = "" ]; then
MIN=0
else
@@ -50,14 +64,14 @@ case $DIST in
;;
esac
-for i in $LST
+[ $BUILD_BASE -ge 1 ] && for i in $LST
do
if [ 0$i -ge $MIN -a 0$i -le $MAX ]; then
echo -n "$(date +%X) $i "
mock -q --configdir=$mocketc -r ${DIST}${i} rebuild $SRPM "$@" && echo " Ok." || echo " Error !"
fi
done
-for i in $SCL
+[ $BUILD_SCLS -ge 1 ] && for i in $SCL
do
if [ 0$i -ge $MIN -a 0$i -le $MAX ]; then
echo -n "$(date +%X) scl$i "