summaryrefslogtreecommitdiffstats
path: root/getmock
diff options
context:
space:
mode:
Diffstat (limited to 'getmock')
-rwxr-xr-xgetmock55
1 files changed, 45 insertions, 10 deletions
diff --git a/getmock b/getmock
index e9a3426..aefc8e3 100755
--- a/getmock
+++ b/getmock
@@ -11,6 +11,9 @@ case $1 in
*) dep=$1
;;
esac
+
+rep=${2-remi}
+
case $dep in
scl73el*) dep=${dep#scl73el}
type=enterprise
@@ -33,6 +36,26 @@ scl55el*) dep=${dep#scl55el}
scl54el*) dep=${dep#scl54el}
type=enterprise
;;
+el8x72)
+ dep=8
+ if [ "$2" == "php72" -o "$2" == "test72" ]
+ then rep=$rep
+ elif [ "$2" == "remi" ]
+ then rep=php72
+ else rep=${2}72
+ fi
+ type=enterprise
+ ;;
+el8x73)
+ dep=8
+ if [ "$2" == "php73" -o "$2" == "test73" ]
+ then rep=$rep
+ elif [ "$2" == "remi" ]
+ then rep=php73
+ else rep=${2}73
+ fi
+ type=enterprise
+ ;;
el*) dep=${dep#el}
type=enterprise
;;
@@ -65,12 +88,12 @@ scl54fc*) dep=${dep#scl54fc}
esac
-if [ -d $type/$dep/${2-remi}/x86_64 ]
+if [ -d $type/$dep/$rep/x86_64 ]
then
- cible=$type/$dep/${2-remi}/
- debug=$type/$dep/debug-${2-remi}/
+ cible=$type/$dep/$rep/
+ debug=$type/$dep/debug-$rep/
else
- echo "$1 n'est pas un dépôt ($type/$dep/${2-remi})"
+ echo "$1 n'est pas un dépôt ($type/$dep/$rep)"
exit 2
fi
@@ -177,6 +200,14 @@ if [ $1 = test71 ]; then
opt=test71
shift
fi
+if [ $1 = test72 ]; then
+ opt=test72
+ shift
+fi
+if [ $1 = test72 ]; then
+ opt=test72
+ shift
+fi
if [ $1 = php55 ]; then
opt=php55
shift
@@ -213,6 +244,10 @@ if [ $1 = glpi93 ]; then
opt=glpi93
shift
fi
+if [ $1 = glpi94 ]; then
+ opt=glpi94
+ shift
+fi
if [ $1 = devs -o $1 = dev ]; then
opt=devs
shift
@@ -274,8 +309,8 @@ elif [ $1 = all72 ]; then
n=6
getOneMock el${n}i $opt '*7.2*'
getOneMock el${n}x $opt '*7.2*'
- n=7
- getOneMock el${n}x $opt '*7.2*'
+ getOneMock el7x $opt '*7.2*'
+ getOneMock el8x72 $opt '*7.2*'
elif [ $1 = all73 ]; then
[ $opt = remi ] && opt=php73
@@ -288,8 +323,8 @@ elif [ $1 = all73 ]; then
n=6
getOneMock el${n}i $opt '*7.3*'
getOneMock el${n}x $opt '*7.3*'
- n=7
- getOneMock el${n}x $opt '*7.3*'
+ getOneMock el7x $opt '*7.3*'
+ getOneMock el8x73 $opt '*7.3*'
elif [ $1 = all54 ]; then
for n in 6
@@ -317,7 +352,7 @@ elif [ $1 = allx ]; then
do
getOneMock fc${i}x $opt
done
- for i in 6 7
+ for i in 6 7 8
do
getOneMock el${i}x $opt
done
@@ -369,7 +404,7 @@ elif [ $1 = scl73 ]; then
do
getOneMock scl73fc${i}x $opt
done
- for i in 6 7
+ for i in 6 7 8
do
getOneMock scl73el${i}x $opt
done