shithub: werc

Download patch

ref: f40bff88ef02bd98160c8e95e58206382a378658
parent: 56b994b4aa2cb82863a442abec5076d9466880e5
author: uriel <uriel@engel.se.cat-v.org>
date: Sat Dec 20 19:08:49 EST 2008

Explicitly call awk when running template.awk so we can use p9p's awk if available and improve portability to native Plan 9.

--- a/bin/cgilib.rc
+++ b/bin/cgilib.rc
@@ -136,7 +136,7 @@
 ##############################################
 # More werc-specific functions
 
-fn template { template.awk $* | rc $rcargs }
+fn template { awk -f bin/template.awk $* | rc $rcargs }
 
 # .rec parsing
 fn parse_rec {