From: Guenter Knauf Date: Mon, 20 Aug 2012 16:45:01 +0000 (+0000) Subject: Only substitute slashes if needed. X-Git-Tag: 2.5.0-alpha~6393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7feb929d5db61fbfdca3eb61146ae912c342f458;p=thirdparty%2Fapache%2Fhttpd.git Only substitute slashes if needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1375099 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/installwinconf.awk b/build/installwinconf.awk index 8ad1e58d8ca..60f784eabb2 100644 --- a/build/installwinconf.awk +++ b/build/installwinconf.awk @@ -223,8 +223,8 @@ BEGIN { if ( close(dstfl) >= 0 ) { print "Rewrote " srcfl "\n to " dstfl > tstfl; - gsub(/\//, "\\", srcfl); if ( sourceroot != "docs/conf/" ) { + gsub(/\//, "\\", srcfl); if (system("del 2>NUL \"" srcfl "\"")) { print "Failed to remove " srcfl > tstfl; } else {