diff options
Diffstat (limited to 'getmock')
-rwxr-xr-x | getmock | 100 |
1 files changed, 55 insertions, 45 deletions
@@ -45,48 +45,68 @@ scl55el*) dep=${dep#scl55el} scl54el*) dep=${dep#scl54el} type=enterprise ;; -el8x72) - dep=8 - if [ "$2" == "php72" -o "$2" == "test72" ] +el?x55) + dep=${1:2:1} + if [ "$2" == "php55" -o "$2" == "test55" ] then rep=$rep elif [ "$2" == "remi" ] - then rep=php72 - else rep=${2}72 + then rep=php55 + else rep=${2}55 fi type=enterprise ;; -el8x73) - dep=8 - if [ "$2" == "php73" -o "$2" == "test73" ] +el?x56) + dep=${1:2:1} + if [ "$2" == "php56" -o "$2" == "test56" ] then rep=$rep elif [ "$2" == "remi" ] - then rep=php73 - else rep=${2}73 + then rep=php56 + else rep=${2}56 fi type=enterprise ;; -el8x74) - dep=8 - if [ "$2" == "php74" -o "$2" == "test74" ] +el?x70) + dep=${1:2:1} + if [ "$2" == "php70" -o "$2" == "test70" ] then rep=$rep elif [ "$2" == "remi" ] - then rep=php74 - else rep=${2}74 + then rep=php70 + else rep=${2}70 fi type=enterprise ;; -el8x80) - dep=8 - if [ "$2" == "php80" -o "$2" == "test80" ] +el?x71) + dep=${1:2:1} + if [ "$2" == "php71" -o "$2" == "test71" ] then rep=$rep elif [ "$2" == "remi" ] - then rep=php80 - else rep=${2}80 + then rep=php71 + else rep=${2}71 + fi + type=enterprise + ;; +el?x72) + dep=${1:2:1} + if [ "$2" == "php72" -o "$2" == "test72" ] + then rep=$rep + elif [ "$2" == "remi" ] + then rep=php72 + else rep=${2}72 + fi + type=enterprise + ;; +el?x73) + dep=${1:2:1} + if [ "$2" == "php73" -o "$2" == "test73" ] + then rep=$rep + elif [ "$2" == "remi" ] + then rep=php73 + else rep=${2}73 fi type=enterprise ;; -el9x74) - dep=9 +el?x74) + dep=${1:2:1} if [ "$2" == "php74" -o "$2" == "test74" ] then rep=$rep elif [ "$2" == "remi" ] @@ -95,8 +115,8 @@ el9x74) fi type=enterprise ;; -el9x80) - dep=9 +el?x80) + dep=${1:2:1} if [ "$2" == "php80" -o "$2" == "test80" ] then rep=$rep elif [ "$2" == "remi" ] @@ -105,18 +125,8 @@ el9x80) fi type=enterprise ;; -el8x81) - dep=8 - if [ "$2" == "php81" -o "$2" == "test81" ] - then rep=$rep - elif [ "$2" == "remi" ] - then rep=php81 - else rep=${2}81 - fi - type=enterprise - ;; -el9x81) - dep=9 +el?x81) + dep=${1:2:1} if [ "$2" == "php81" -o "$2" == "test81" ] then rep=$rep elif [ "$2" == "remi" ] @@ -316,40 +326,40 @@ fi if [ $1 = all55 ]; then n=7 - getOneMock el${n}x php55 '*5.5*' + getOneMock el${n}x55 php55 '*5.5*' elif [ $1 = all56 ]; then n=7 - getOneMock el${n}x php56 '*5.6*' + getOneMock el${n}x56 php56 '*5.6*' elif [ $1 = all70 ]; then [ $opt = remi ] && opt=php70 [ $opt = test ] && opt=test70 n=7 - getOneMock el${n}x $opt '*7.0*' + getOneMock el${n}x70 $opt '*7.0*' elif [ $1 = all71 ]; then [ $opt = remi ] && opt=php71 [ $opt = test ] && opt=test71 n=7 - getOneMock el${n}x $opt '*7.1*' + getOneMock el${n}x71 $opt '*7.1*' elif [ $1 = all72 ]; then [ $opt = remi ] && opt=php72 [ $opt = test ] && opt=test72 - getOneMock el7x $opt '*7.2*' + getOneMock el7x72 $opt '*7.2*' getOneMock el8x72 $opt '*7.2*' elif [ $1 = all73 ]; then [ $opt = remi ] && opt=php73 [ $opt = test ] && opt=test73 - getOneMock el7x $opt '*7.3*' + getOneMock el7x73 $opt '*7.3*' getOneMock el8x73 $opt '*7.3*' elif [ $1 = all74 ]; then [ $opt = remi ] && opt=php74 [ $opt = test ] && opt=test74 - getOneMock el7x $opt '*7.4*' + getOneMock el7x74 $opt '*7.4*' getOneMock el8x74 $opt '*7.4*' getOneMock el9x74 $opt '*7.4*' @@ -358,7 +368,7 @@ elif [ $1 = all80 ]; then [ $opt = test ] && opt=test80 getOneMock fc33x $opt '*8.0*' getOneMock fc34x $opt '*8.0*' - getOneMock el7x $opt '*8.0*' + getOneMock el7x80 $opt '*8.0*' getOneMock el8x80 $opt '*8.0*' getOneMock el9x80 $opt '*8.0*' @@ -368,7 +378,7 @@ elif [ $1 = all81 ]; then getOneMock fc33x $opt '*8.1*' getOneMock fc34x $opt '*8.1*' getOneMock fc35x $opt '*8.1*' - getOneMock el7x $opt '*8.1*' + getOneMock el7x81 $opt '*8.1*' getOneMock el8x81 $opt '*8.1*' getOneMock el9x81 $opt '*8.1*' |