From 125300b56328d1c56c61efa72f53499c1a586e3e Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 7 Aug 1999 15:31:57 +0000 Subject: Fix&improve conversion scripts --- scripts/apache/conffix.awk | 6 +++--- scripts/apache/htaccessfix.awk | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/apache') diff --git a/scripts/apache/conffix.awk b/scripts/apache/conffix.awk index c4aa28f015..88be6fade7 100644 --- a/scripts/apache/conffix.awk +++ b/scripts/apache/conffix.awk @@ -1,10 +1,10 @@ # $Id$ -/php3_*/ { +/^[ \t]*php3_*/ { phpcommand=substr($1,6) phpvalue=tolower($2) print "" - print $1 $2 + print $0 print "" print "" if (phpvalue=="on") { @@ -17,7 +17,7 @@ print "" } -! /php3_*/ { +! /^[ \t]*php3_*/ { print $0 } diff --git a/scripts/apache/htaccessfix.awk b/scripts/apache/htaccessfix.awk index a74e2bbfd8..3c784cd335 100644 --- a/scripts/apache/htaccessfix.awk +++ b/scripts/apache/htaccessfix.awk @@ -1,10 +1,10 @@ # $Id$ -/php3_*/ { +/^[ \t]*php3_*/ { phpcommand=substr($1,6) phpvalue=tolower($2) print "" - print $1 $2 + print $0 print "" print "" if (phpvalue=="on") { @@ -17,7 +17,7 @@ print "" } -! /php3_*/ { +! /^[ \t]*php3_*/ { print $0 } -- cgit v1.2.1