[Pkg-php-commits] [php/debian-sid] Enable short_open_tag again

Ondřej Surý ondrej at sury.org
Sun Feb 7 23:17:14 UTC 2010


Add little sed magick to debian/rules to enable short_open_tag again.

Closes: #537099
---
 debian/rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/rules b/debian/rules
index c0d096a..0526a20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -392,7 +392,7 @@ install: build
 		debian/libapache2-mod-php5filter/etc/apache2/mods-available/php5filter.conf
 
 	# sanitize php.ini file
-	cat php.ini-production | tr "\t" " " > debian/php5-common/usr/share/php5/php.ini-production
+	cat php.ini-production | tr "\t" " " | sed -e'/short_open_tag =/ s/Off/On/g' > debian/php5-common/usr/share/php5/php.ini-production
 	cat php.ini-production | tr "\t" " " | sed -e'/memory_limit =/ s/128M/32M/g' > debian/php5-common/usr/share/php5/php.ini-production.cli
 	cat php.ini-production | tr "\t" " " > debian/php5-common/usr/share/doc/php5-common/examples/php.ini-production
 	cat php.ini-development | tr "\t" " " > debian/php5-common/usr/share/doc/php5-common/examples/php.ini-development
-- 
1.6.3.3





More information about the Pkg-php-commits mailing list