[projects/pld-builder.new] support php 5.4 and php 5.5 as well

glen glen at pld-linux.org
Fri Jun 21 09:43:17 CEST 2013


commit fe15b9c1addebb829d7d36cf81671d51a891df1c
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

 client/php52.sh | 5 ++++-
 client/php54.sh | 1 +
 client/php55.sh | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/client/php52.sh b/client/php52.sh
index e275bd9..219ee3b 100755
--- a/client/php52.sh
+++ b/client/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/client/php54.sh b/client/php54.sh
new file mode 120000
index 0000000..e7791d7
--- /dev/null
+++ b/client/php54.sh
@@ -0,0 +1 @@
+php52.sh
\ No newline at end of file
diff --git a/client/php55.sh b/client/php55.sh
new file mode 120000
index 0000000..e7791d7
--- /dev/null
+++ b/client/php55.sh
@@ -0,0 +1 @@
+php52.sh
\ No newline at end of file
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/fe15b9c1addebb829d7d36cf81671d51a891df1c



More information about the pld-cvs-commit mailing list