summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
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 "