[packages/rpm-build-tools/merge-pld-builder-client: 2409/2675] support php 5.4 and php 5.5 as well

glen glen at pld-linux.org
Mon Dec 19 22:05:32 CET 2016


commit 4871859326e28bfcb0bfdc7edd3bba3e8cc2ff44
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jun 21 10:43:03 2013 +0300

    support php 5.4 and php 5.5 as well

 php52.sh | 5 ++++-
 php54.sh | 1 +
 php55.sh | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/php52.sh b/php52.sh
index e275bd9..219ee3b 100755
--- a/php52.sh
+++ b/php52.sh
@@ -1,7 +1,10 @@
 #!/bin/sh
+program=${0##*/}
+program=${program%.sh}
 dir=$(dirname "$0")
 rpmdir=$(rpm -E %_topdir)
 dist=th
+suffix=${program#php}
 
 # get_last_specs and autotag copied from rebuild-th-kernel.sh
 # autotag from rpm-build-macros
@@ -63,4 +66,4 @@ get_last_tags() {
 
 specs=$(get_last_tags "$@")
 
-exec $dir/make-request.sh -D 'php_suffix 52' $specs -C 'poldek -ev --noask php52-devel'
+exec $dir/make-request.sh -D "php_suffix $suffix" $specs -C "poldek -ev --noask php$suffix-devel"
diff --git a/php54.sh b/php54.sh
new file mode 120000
index 0000000..e7791d7
--- /dev/null
+++ b/php54.sh
@@ -0,0 +1 @@
+php52.sh
\ No newline at end of file
diff --git a/php55.sh b/php55.sh
new file mode 120000
index 0000000..e7791d7
--- /dev/null
+++ b/php55.sh
@@ -0,0 +1 @@
+php52.sh
\ No newline at end of file
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd



More information about the pld-cvs-commit mailing list