From 6beb7b5248f6abb88f65b8088daa6177b537a0f2 Mon Sep 17 00:00:00 2001 From: Thomas Oulevey Date: Aug 19 2015 07:22:38 +0000 Subject: Add -a to be able to override default archictecture set at sig creation time (e.g: sclo el6) --- diff --git a/scripts/create_sig.sh b/scripts/create_sig.sh index 5a40fae..a6f2893 100755 --- a/scripts/create_sig.sh +++ b/scripts/create_sig.sh @@ -8,17 +8,19 @@ usage: $0 -d -s -t This script generate new build target in koji for SIGS. OPTIONS: + -a ARCHES : Force arches e.g : "x86_64","aarch64 i686", etc... -b : Enable non public bootstrap repo (SCLO SIG only) -c COLLECTION : mariadb100 (a single collection can be used at this time) - -d Distribution : 5 6 7 - -p SIG project name : cloud6-, sclo-, etc... - -r SIG project release name : cloud6-openstack- - -s SIG name : cloud + -d DISTRIBUTION : 5 6 7 + -p SIG PROJECT NAME : cloud6-, sclo-, etc... + -r SIG PROJECT RELEASE NAME : cloud6-openstack- + -s SIG NAME : cloud -t DISTTAGS : "el7 el7.centos el7_0" -x : delete old -build tag and then recreate. EOF } +optiona=false optionb=false optiond=false options=false @@ -28,13 +30,17 @@ optionp=false optionr=false optionx=false -while getopts ":hxbd:s:t:c:p:r:" OPTION +while getopts ":hxba:d:s:t:c:p:r:" OPTION do case $OPTION in h) usage exit 0 ;; + a) + optiona=true + ARCHES="${OPTARG}" + ;; b) optionb=true ;; @@ -96,11 +102,11 @@ for DIST in $DISTS do case $DIST in - 5) echo "* Checking distribution el$DIST configuration..."; ARCHES="i386 x86_64"; DEFAULT_DISTTAG="el5" + 5) echo "* Checking distribution el$DIST configuration..."; ( ! $optiona ) && ARCHES="i386 x86_64"; DEFAULT_DISTTAG="el5" ;; - 6) echo "* Checking distribution el$DIST configuration..."; ARCHES="i686 x86_64"; DEFAULT_DISTTAG="el6" + 6) echo "* Checking distribution el$DIST configuration..."; ( ! $optiona ) && ARCHES="i686 x86_64"; DEFAULT_DISTTAG="el6" ;; - 7) echo "* Checking distribution el$DIST configuration..."; ARCHES="x86_64"; DEFAULT_DISTTAG="el7.centos" + 7) echo "* Checking distribution el$DIST configuration..."; ( ! $optiona ) && ARCHES="x86_64"; DEFAULT_DISTTAG="el7.centos" ;; *) echo "It seems your distribution el${DIST} is unsupported" && continue ;;