summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore10
-rw-r--r--buildfct36
-rwxr-xr-xcleanoldrpm18
-rwxr-xr-xgetmock18
-rwxr-xr-xsortrefl51
5 files changed, 121 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5090361
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+checkpkgist/
+diffrpmtree
+docker/
+ffi-examples/
+git2rss/
+mine.lst
+mock/
+myrpms
+repodata/
+
diff --git a/buildfct b/buildfct
index 5ffd02f..d628a9d 100644
--- a/buildfct
+++ b/buildfct
@@ -56,6 +56,7 @@ alias mockfc33xscl72=" mock --configdir=$mocketc -r fc33xscl72
alias mockfc33xscl73=" mock --configdir=$mocketc -r fc33xscl73 rebuild "
alias mockfc33xscl74=" mock --configdir=$mocketc -r fc33xscl74 rebuild "
alias mockfc33xscl80=" mock --configdir=$mocketc -r fc33xscl80 rebuild "
+alias mockfc33xscl81=" mock --configdir=$mocketc -r fc33xscl81 rebuild "
alias mockfc34i=" setarch i686 mock --configdir=$mocketc -r fc34i --arch i686 rebuild "
alias mockfc34x=" mock --configdir=$mocketc -r fc34x rebuild "
@@ -69,6 +70,7 @@ alias mockfc34xscl72=" mock --configdir=$mocketc -r fc34xscl72
alias mockfc34xscl73=" mock --configdir=$mocketc -r fc34xscl73 rebuild "
alias mockfc34xscl74=" mock --configdir=$mocketc -r fc34xscl74 rebuild "
alias mockfc34xscl80=" mock --configdir=$mocketc -r fc34xscl80 rebuild "
+alias mockfc34xscl81=" mock --configdir=$mocketc -r fc34xscl81 rebuild "
alias mockel6i=" setarch i686 mock --configdir=$mocketc -r el6i --arch i686 rebuild "
alias mockel6it=" setarch i686 mock --configdir=$mocketc -r el6it --arch i686 rebuild "
@@ -116,6 +118,7 @@ alias mockel7xscl72=" mock --configdir=$mocketc -r el7xscl72 r
alias mockel7xscl73=" mock --configdir=$mocketc -r el7xscl73 rebuild "
alias mockel7xscl74=" mock --configdir=$mocketc -r el7xscl74 rebuild "
alias mockel7xscl80=" mock --configdir=$mocketc -r el7xscl80 rebuild "
+alias mockel7xscl81=" mock --configdir=$mocketc -r el7xscl81 rebuild "
alias mockel8x=" mock --configdir=$mocketc -r el8x rebuild "
alias mockel8xr=" mock --configdir=$mocketc -r el8xr rebuild "
@@ -131,6 +134,7 @@ alias mockel8xscl72=" mock --configdir=$mocketc -r el8xscl72 r
alias mockel8xscl73=" mock --configdir=$mocketc -r el8xscl73 rebuild "
alias mockel8xscl74=" mock --configdir=$mocketc -r el8xscl74 rebuild "
alias mockel8xscl80=" mock --configdir=$mocketc -r el8xscl80 rebuild "
+alias mockel8xscl81=" mock --configdir=$mocketc -r el8xscl81 rebuild "
alias mockepel872=" mock --configdir=$mocketc -r epel872 rebuild "
alias mockepel873=" mock --configdir=$mocketc -r epel873 rebuild "
@@ -178,12 +182,12 @@ if [ -f "$1" ]; then
for i in 34 33 32
do
echo -n "$(date +%X) fc$i "
- mock $quiet --configdir=$mocketc -r fc${i}xr rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r fc${i}xr rebuild "$@" && echo " Ok." || echo " Error !"
done
for i in 7 8
do
echo -n "$(date +%X) el$i "
- mock $quiet --configdir=$mocketc -r el${i}xr rebuild $1 && echo " Ok." || echo " Error !"
+ mock $quiet --configdir=$mocketc -r el${i}xr rebuild "$@" && echo " Ok." || echo " Error !"
done
date +%X
else
@@ -488,6 +492,32 @@ else
fi
}
+# Build All distribution / version / 64bits for remi/scl-php81
+mockscl81x()
+{
+quiet=""
+if [ "$1" = "-q" ]; then
+ quiet="--quiet"
+ shift
+fi
+
+if [ -f "$1" ]; then
+ for i in 33 34
+ do
+ echo -n "$(date +%X) scl81 fc$i "
+ mock $quiet --configdir=$mocketc -r fc${i}xscl81 rebuild "$@" && echo " Ok." || echo " Error !"
+ done
+ for i in 7 8
+ do
+ echo -n "$(date +%X) scl81 el$i "
+ mock $quiet --configdir=$mocketc -r el${i}xscl81 rebuild "$@" && echo " Ok." || echo " Error !"
+ done
+ date +%X
+else
+ echo "file not found '$1'"
+fi
+}
+
# Build All distribution / version / 64bits for remi/remi-php74
mock80x()
{
@@ -540,7 +570,7 @@ else
fi
}
-# Build All distribution / version / 64bits for remi/scl-php80
+# Build All distribution / version / 64bits for remi/scl-php74
mockscl74x()
{
quiet=""
diff --git a/cleanoldrpm b/cleanoldrpm
index c72c4d0..95db69e 100755
--- a/cleanoldrpm
+++ b/cleanoldrpm
@@ -7,14 +7,16 @@ $mode = 0;
$keep = 0;
$dest = false;
$multi = [
- 'php' => 3, // php/8.0
- 'redis' => 3, // redis/6.2
- 'redis-devel' => 3, // redis/6.2
- 'redis-doc' => 3, // redis/6.2
- 'redis-trib' => 3, // redis/6.2
- 'redis' => 3, // redis/6.2
- 'composer' => 1, // composer/2
- 'phan' => 1, // phan/3
+ 'php' => 3, // php/8.0
+ 'redis' => 3, // redis/6.2
+ 'redis-debuginfo' => 3, // redis/6.2
+ 'redis-debugsource' => 3, // redis/6.2
+ 'redis-devel' => 3, // redis/6.2
+ 'redis-doc' => 3, // redis/6.2
+ 'redis-trib' => 3, // redis/6.2
+ 'redis' => 3, // redis/6.2
+ 'composer' => 1, // composer/2
+ 'phan' => 1, // phan/3
];
if (isset($_SERVER['argv'][1])) {
$keep = (int)$_SERVER['argv'][1];
diff --git a/getmock b/getmock
index 189bfac..9ab7468 100755
--- a/getmock
+++ b/getmock
@@ -15,6 +15,9 @@ esac
rep=${2-remi}
case $dep in
+scl81el*) dep=${dep#scl81el}
+ type=enterprise
+ ;;
scl80el*) dep=${dep#scl80el}
type=enterprise
;;
@@ -88,12 +91,15 @@ el*) dep=${dep#el}
fc*) dep=${dep#fc}
type=fedora
;;
-scl74fc*) dep=${dep#scl74fc}
+scl81fc*) dep=${dep#scl81fc}
type=fedora
;;
scl80fc*) dep=${dep#scl80fc}
type=fedora
;;
+scl74fc*) dep=${dep#scl74fc}
+ type=fedora
+ ;;
scl73fc*) dep=${dep#scl73fc}
type=fedora
;;
@@ -379,6 +385,16 @@ elif [ $1 = scl71 ]; then
getOneMock scl71el${i}x $opt
done
+elif [ $1 = scl81 ]; then
+ for i in 33 34
+ do
+ getOneMock scl81fc${i}x $opt
+ done
+ for i in 7 8
+ do
+ getOneMock scl81el${i}x $opt
+ done
+
elif [ $1 = scl80 ]; then
for i in 32 33 34
do
diff --git a/sortrefl b/sortrefl
new file mode 100755
index 0000000..f38efb5
--- /dev/null
+++ b/sortrefl
@@ -0,0 +1,51 @@
+#!/usr/bin/php
+<?php
+if ($_SERVER['argc'] < 2) {
+ die("usage %s filename\n");
+}
+$in = fopen($name = $_SERVER['argv'][1], "r");
+if (!$in) {
+ die("Can't read input file $name\n");
+}
+
+$res = [];
+$tab = [];
+$class = $method = false;
+fprintf(STDERR, "Reading $name:\n");
+while ($buf = fgets($in)) {
+ if (preg_match("/Class .* class ([^ ]*) /", $buf, $m)) {
+ $class = strtolower($m[1]);
+ $res[$class] = [];
+ $tab[$class] = $buf;
+ fprintf(STDERR, "+ $class\n");
+ } else if (preg_match("/Method .* method ([^ ]*) /", $buf, $m)) {
+ $method = strtolower($m[1]);
+ $res[$class][$method] = '';
+ fprintf(STDERR, "+ $method\n");
+ }
+
+ if ($class) {
+ if ($method) {
+ $res[$class][$method] .= $buf;
+ }
+ }
+
+ if (strpos($buf, "}") == 8) {
+ $method = false;
+ } else if (strpos($buf, "}") == 4) {
+ $class = false;
+ }
+}
+
+ksort($res);
+foreach ($res as $class => $methods) {
+ echo $tab[$class];
+
+ ksort($methods);
+ foreach ($methods as $method => $def) {
+ echo $def;
+ }
+}
+fprintf(STDERR, "\nDone\n");
+fclose($in);
+?>