summaryrefslogtreecommitdiffstats
path: root/buildfct
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-08 17:42:28 +0200
committerRemi Collet <remi@remirepo.net>2017-10-08 17:42:28 +0200
commit481ed88f06967310ea6bf1e9d7f21569242855bd (patch)
treebecb788719c64b33b3965dd6f14720338a41e9a3 /buildfct
parent6b6cc76f53cea86edaa07c7f8f2bb3af3c5061b8 (diff)
new helpers: mock7x, mock7i, mock5x mock5i
Diffstat (limited to 'buildfct')
-rw-r--r--buildfct90
1 files changed, 90 insertions, 0 deletions
diff --git a/buildfct b/buildfct
index 080d6bf..58fd6c8 100644
--- a/buildfct
+++ b/buildfct
@@ -152,6 +152,49 @@ else
fi
}
+# Build All distribution (PHP 7) / version / 32bits for remi
+mock7i()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 25 26 27
+ do
+ echo -n "$(date +%X) fc$i "
+ setarch i686 mock $quiet --configdir=$mocketc -r fc${i}i --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
+ done
+else
+ echo "file not found p$1'"
+fi
+}
+
+# Build All distribution (PHP 5) / version / 32bits for remi
+mock5i()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 24
+ do
+ echo -n "$(date +%X) fc$i "
+ setarch i686 mock $quiet --configdir=$mocketc -r fc${i}i --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
+ done
+ echo -n "$(date +%X) el6 "
+ setarch i686 mock $quiet --configdir=$mocketc -r el6i --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
+ date +%X
+else
+ echo "file not found p$1'"
+fi
+}
+
# Build All enterprise / version / 32bits for remi (php 5.4)
mock54i()
{
@@ -321,6 +364,53 @@ else
fi
}
+# Build All distribution (PHP 7) / version / 64bits for remi
+mock7x()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 25 26 27
+ do
+ echo -n "$(date +%X) fc$i "
+ mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ done
+ date +%X
+else
+ echo "file not found '$1'"
+fi
+}
+
+# Build All distribution (PHP 5) / version / 64bits for remi
+mock5x()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 24
+ do
+ echo -n "$(date +%X) fc$i "
+ mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ done
+ for i in 7 6
+ do
+ echo -n "$(date +%X) el$i "
+ mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
+ done
+ date +%X
+else
+ echo "file not found '$1'"
+fi
+}
+
# Build enterprise / version / 64bits for remi (php 5.4)
mock54x()
{