summaryrefslogtreecommitdiffstats
path: root/buildfct
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-09-02 10:11:19 +0200
committerRemi Collet <remi@remirepo.net>2021-09-02 10:11:19 +0200
commit274f2f31bef895207ef33a6e28627570440dca0d (patch)
tree898bab792f9bbd63bd1f215d587e17bfc8cd1897 /buildfct
parentd18cf8bc918d26cdad25d1311a7effe4bd308f48 (diff)
8.1 helpers
Diffstat (limited to 'buildfct')
-rw-r--r--buildfct102
1 files changed, 66 insertions, 36 deletions
diff --git a/buildfct b/buildfct
index d628a9d..1489997 100644
--- a/buildfct
+++ b/buildfct
@@ -49,6 +49,7 @@ alias mockfc33x=" mock --configdir=$mocketc -r fc33x
alias mockfc33xd=" mock --configdir=$mocketc -r fc33xd rebuild "
alias mockfc33xr=" mock --configdir=$mocketc -r fc33xr rebuild "
alias mockfc33x80=" mock --configdir=$mocketc -r fc33x80 rebuild "
+alias mockfc33x81=" mock --configdir=$mocketc -r fc33x81 rebuild "
alias mockfc33xscl56=" mock --configdir=$mocketc -r fc33xscl56 rebuild "
alias mockfc33xscl70=" mock --configdir=$mocketc -r fc33xscl70 rebuild "
alias mockfc33xscl71=" mock --configdir=$mocketc -r fc33xscl71 rebuild "
@@ -63,6 +64,7 @@ alias mockfc34x=" mock --configdir=$mocketc -r fc34x
alias mockfc34xd=" mock --configdir=$mocketc -r fc34xd rebuild "
alias mockfc34xr=" mock --configdir=$mocketc -r fc34xr rebuild "
alias mockfc34x80=" mock --configdir=$mocketc -r fc34x80 rebuild "
+alias mockfc34x81=" mock --configdir=$mocketc -r fc34x81 rebuild "
alias mockfc34xscl56=" mock --configdir=$mocketc -r fc34xscl56 rebuild "
alias mockfc34xscl70=" mock --configdir=$mocketc -r fc34xscl70 rebuild "
alias mockfc34xscl71=" mock --configdir=$mocketc -r fc34xscl71 rebuild "
@@ -109,6 +111,7 @@ alias mockel7x72=" mock --configdir=$mocketc -r el7x72 r
alias mockel7x73=" mock --configdir=$mocketc -r el7x73 rebuild "
alias mockel7x74=" mock --configdir=$mocketc -r el7x74 rebuild "
alias mockel7x80=" mock --configdir=$mocketc -r el7x80 rebuild "
+alias mockel7x81=" mock --configdir=$mocketc -r el7x81 rebuild "
alias mockel7xscl54=" mock --configdir=$mocketc -r el7xscl54 rebuild "
alias mockel7xscl55=" mock --configdir=$mocketc -r el7xscl55 rebuild "
alias mockel7xscl56=" mock --configdir=$mocketc -r el7xscl56 rebuild "
@@ -127,6 +130,7 @@ alias mockel8x72=" mock --configdir=$mocketc -r el8x72 r
alias mockel8x73=" mock --configdir=$mocketc -r el8x73 rebuild "
alias mockel8x74=" mock --configdir=$mocketc -r el8x74 rebuild "
alias mockel8x80=" mock --configdir=$mocketc -r el8x80 rebuild "
+alias mockel8x81=" mock --configdir=$mocketc -r el8x81 rebuild "
alias mockel8xscl56=" mock --configdir=$mocketc -r el8xscl56 rebuild "
alias mockel8xscl70=" mock --configdir=$mocketc -r el8xscl70 rebuild "
alias mockel8xscl71=" mock --configdir=$mocketc -r el8xscl71 rebuild "
@@ -156,12 +160,12 @@ if [ -f "$1" ]; then
for i in 33 34 32
do
echo -n "$(date +%X) fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 7
do
echo -n "$(date +%X) el$i "
- mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -208,7 +212,7 @@ if [ -f "$1" ]; then
for i in 33 32 34
do
echo -n "$(date +%X) fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -229,7 +233,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) el$i "
- mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -250,7 +254,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) el$i "
- mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -258,8 +262,8 @@ else
fi
}
-# Build All distribution / version / noarch for remi using PHP >= 7.2
-mock72n()
+# Build All distribution / version / noarch for remi using PHP >= 7.3
+mock73n()
{
quiet="--quiet"
if [ "$1" = "-q" ]; then
@@ -272,17 +276,17 @@ if [ -f "$1" ]; then
for i in 32 33 34
do
echo -n ""
- (mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo "$(date +%X) (7x) fc$i Ok." || echo "fc$1 Error !")&
+ (mock $quiet --configdir=$mocketc -r fc${i}x rebuild "$@" && echo "$(date +%X) (7x) fc$i Ok." || echo "fc$1 Error !")&
pids="$pids $!"
done
for i in 7
do
echo -n ""
- (mock $quiet --configdir=$mocketc -r el${i}x72 rebuild $1 && echo "$(date +%X) (72) el$i Ok." || echo "el$i Error !")&
+ (mock $quiet --configdir=$mocketc -r el${i}x73 rebuild "$@" && echo "$(date +%X) (73) el$i Ok." || echo "el$i Error !")&
pids="$pids $!"
done
echo -n ""
- (mock $quiet --configdir=$mocketc -r el8x rebuild $1 && echo "$(date +%X) (73) el8 Ok." || echo "el8 Error !")&
+ (mock $quiet --configdir=$mocketc -r el8x rebuild "$@" && echo "$(date +%X) (73) el8 Ok." || echo "el8 Error !")&
pids="$pids $!"
wait $pids
date +%X
@@ -291,8 +295,8 @@ else
fi
}
-# Build All distribution / version / noarch for remi using PHP >= 7.3
-mock73n()
+# Build All distribution / version / noarch for remi using PHP >= 7.4
+mock74n()
{
quiet="--quiet"
if [ "$1" = "-q" ]; then
@@ -305,17 +309,17 @@ if [ -f "$1" ]; then
for i in 32 33 34
do
echo -n ""
- (mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo "$(date +%X) (7x) fc$i Ok." || echo "fc$1 Error !")&
+ (mock $quiet --configdir=$mocketc -r fc${i}x rebuild "$@" && echo "$(date +%X) (7x) fc$i Ok." || echo "fc$1 Error !")&
pids="$pids $!"
done
for i in 7
do
echo -n ""
- (mock $quiet --configdir=$mocketc -r el${i}x73 rebuild $1 && echo "$(date +%X) (73) el$i Ok." || echo "el$i Error !")&
+ (mock $quiet --configdir=$mocketc -r el${i}x74 rebuild "$@" && echo "$(date +%X) (73) el$i Ok." || echo "el$i Error !")&
pids="$pids $!"
done
echo -n ""
- (mock $quiet --configdir=$mocketc -r el8x rebuild $1 && echo "$(date +%X) (73) el8 Ok." || echo "el8 Error !")&
+ (mock $quiet --configdir=$mocketc -r el8x rebuild "$@" && echo "$(date +%X) (73) el8 Ok." || echo "el8 Error !")&
pids="$pids $!"
wait $pids
date +%X
@@ -337,7 +341,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) 55 el$i "
- mock $quiet --configdir=$mocketc -r el${i}x55 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x55 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -358,7 +362,7 @@ if [ -f "$1" ]; then
for i in 8 7
do
echo -n "$(date +%X) el${i}x "
- mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -379,7 +383,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) 56 el$i "
- mock $quiet --configdir=$mocketc -r el${i}x56 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}x56 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -518,7 +522,33 @@ else
fi
}
-# Build All distribution / version / 64bits for remi/remi-php74
+# Build All distribution / version / 64bits for remi/remi-php81
+mock81x()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 33 34
+ do
+ echo -n "$(date +%X) 81 fc$i "
+ mock $quiet --configdir=$mocketc -r fc${i}x81 rebuild "$@" && echo " Ok." || echo " Error !"
+ done
+ for i in 8 7
+ do
+ echo -n "$(date +%X) 81 el$i "
+ mock $quiet --configdir=$mocketc -r el${i}x81 rebuild "$@"&& echo " Ok." || echo " Error !"
+ done
+ date +%X
+else
+ echo "file not found '$1'"
+fi
+}
+
+# Build All distribution / version / 64bits for remi/remi-php80
mock80x()
{
quiet=""
@@ -557,12 +587,12 @@ if [ -f "$1" ]; then
for i in 33 34 32
do
echo -n "$(date +%X) scl80 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl80 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl80 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 7 8
do
echo -n "$(date +%X) scl80 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl80 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl80 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -583,12 +613,12 @@ if [ -f "$1" ]; then
for i in 33 32 34
do
echo -n "$(date +%X) scl74 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl74 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl74 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 7 8
do
echo -n "$(date +%X) scl74 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl74 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl74 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -609,12 +639,12 @@ if [ -f "$1" ]; then
for i in 33 34 32
do
echo -n "$(date +%X) scl73 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl73 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl73 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 7 8
do
echo -n "$(date +%X) scl73 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl73 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl73 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -635,12 +665,12 @@ if [ -f "$1" ]; then
for i in 33 32 34
do
echo -n "$(date +%X) scl72 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl72 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl72 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 8 7
do
echo -n "$(date +%X) scl72 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl72 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl72 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -661,12 +691,12 @@ if [ -f "$1" ]; then
for i in 33 32 34
do
echo -n "$(date +%X) scl71 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl71 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl71 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 8 7
do
echo -n "$(date +%X) scl71 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl71 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl71 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -687,12 +717,12 @@ if [ -f "$1" ]; then
for i in 33 34 32
do
echo -n "$(date +%X) scl70 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl70 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl70 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 8 7
do
echo -n "$(date +%X) scl70 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl70 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl70 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -713,12 +743,12 @@ if [ -f "$1" ]; then
for i in 33 32 34
do
echo -n "$(date +%X) scl56 fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xscl56 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xscl56 rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 8 7
do
echo -n "$(date +%X) scl56 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl56 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl56 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -739,7 +769,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) scl55 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl55 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl55 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -760,7 +790,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) scl54 el$i "
- mock $quiet --configdir=$mocketc -r el${i}xscl54 rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xscl54 rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -781,7 +811,7 @@ if [ -f "$1" ]; then
for i in 7
do
echo -n "$(date +%X) test-el$i "
- mock $quiet --configdir=$mocketc -r el${i}xt rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xt rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else