]> granicus.if.org Git - apache/commitdiff
Fixed the NetWare AWK script that produces the httpd.conf file so that it
authorBradley Nicholes <bnicholes@apache.org>
Tue, 23 Apr 2002 23:32:33 +0000 (23:32 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 23 Apr 2002 23:32:33 +0000 (23:32 +0000)
understands the new macros.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94776 13f79535-47bb-0310-9956-ffa450edef68

build/mkconfNW.awk

index f0671067d6dcdbf6f281031272c90b0e70090aaf..9040069db49e157ad1fd0ccad19565fc9a626225 100644 (file)
@@ -13,7 +13,12 @@ BEGIN {
     A["runtimedir"] = "logs"
     A["errordir"] = "error"
     A["proxycachedir"] = "proxy"
-    
+
+    B["htdocsdir"] = A["ServerRoot"]"/"A["htdocsdir"]
+    B["iconsdir"] = A["ServerRoot"]"/"A["iconsdir"]
+    B["manualdir"] = A["ServerRoot"]"/"A["manualdir"]
+    B["errordir"] = A["ServerRoot"]"/"A["errordir"]
+    B["proxycachedir"] = A["ServerRoot"]"/"A["proxycachedir"]
 }
 
 /@@LoadModule@@/ {
@@ -52,6 +57,11 @@ match ($0,/@rel_.*@/) {
     sub(/@rel_.*@/,A[s],$0)
 }
 
+match ($0,/@exp_.*@/) {
+    s=substr($0,RSTART+5,RLENGTH-6)
+    sub(/@exp_.*@/,B[s],$0)
+}
+
 {
     print
 }