summaryrefslogtreecommitdiff
path: root/debian/php5-module.bug.script
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-07-11 14:30:57 +0200
committerOndřej Surý <ondrej@sury.org>2013-07-11 14:30:57 +0200
commit8c76c8b7d5d5ce03691429d95b4a329d87d25b1e (patch)
treee1a5d2d874f3796427a97cbeb41f1a2957b90318 /debian/php5-module.bug.script
parent30e2c9be400797f4a9ad8753e4a50f4a63a96df0 (diff)
downloadphp-8c76c8b7d5d5ce03691429d95b4a329d87d25b1e.tar.gz
Make .ini files more terse (remove comments and blank lines)
Diffstat (limited to 'debian/php5-module.bug.script')
-rwxr-xr-xdebian/php5-module.bug.script4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/php5-module.bug.script b/debian/php5-module.bug.script
index 3c672ed97..96ae17e14 100755
--- a/debian/php5-module.bug.script
+++ b/debian/php5-module.bug.script
@@ -1,5 +1,7 @@
#!/bin/sh
+MATCH="^[[:space:]]*($|;)"
+
echo "==== Additional PHP 5 information ====" >&3
echo "" >&3
echo "++++ PHP 5 SAPI (php5query -S): ++++" >&3
@@ -13,6 +15,6 @@ echo "++++ Configuration files: ++++" >&3
for dsoname in @modules@; do
inifile=${dsoname}.ini
echo "**** /etc/php5/mods-available/$dsoname.ini ****" >&3
- cat "/etc/php5/mods-available/$dsoname.ini" >&3
+ grep -Ev "$MATCH" "/etc/php5/mods-available/$dsoname.ini" >&3
echo "" >&3
done