[csw-devel] SF.net SVN: gar:[14836] csw/mgar/pkg/php5/trunk/files/CSWphp5.postinstall
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Sat Jun 18 04:36:54 CEST 2011
Revision: 14836
http://gar.svn.sourceforge.net/gar/?rev=14836&view=rev
Author: bdwalton
Date: 2011-06-18 02:36:54 +0000 (Sat, 18 Jun 2011)
Log Message:
-----------
php5/trunk: update the postinstall for the new extension directory
Modified Paths:
--------------
csw/mgar/pkg/php5/trunk/files/CSWphp5.postinstall
Modified: csw/mgar/pkg/php5/trunk/files/CSWphp5.postinstall
===================================================================
--- csw/mgar/pkg/php5/trunk/files/CSWphp5.postinstall 2011-06-17 09:55:34 UTC (rev 14835)
+++ csw/mgar/pkg/php5/trunk/files/CSWphp5.postinstall 2011-06-18 02:36:54 UTC (rev 14836)
@@ -2,10 +2,12 @@
PATH=/bin:/usr/bin:/opt/csw/bin:/sbin:/usr/sbin:/opt/csw/sbin
-extdir="no-debug-non-zts-20060613"
-curextdir=`perl -lne '/(no-debug-non-zts-[0-9]+)/ && print $1' /etc/opt/csw/php5/php.ini`
+curextdir=`perl -lne '/(no-debug-non-zts-[0-9]+)/ && print $1' /etc/opt/csw/php
+5/php.ini`
-if [ "no-debug-non-zts-20060613" != "$curextdir" ]; then
- echo "updating extension_dir..."
- perl -i.bak -plne "s,no-debug-non-zts-[0-9]+,no-debug-non-zts-20060613," /etc/opt/csw/php5/php.ini
+# the new php.ini doesn't have this line at all, but the old one might.
+# update it if required.
+if [ "no-debug-non-zts-20090626" != "$curextdir" ]; then
+ echo "Updating extension_dir..."
+ perl -i.bak -plne "s,no-debug-non-zts-[0-9]+,no-debug-non-zts-20090626," /etc/opt/csw/php5/php.ini
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list