summaryrefslogtreecommitdiff
path: root/webgen
diff options
context:
space:
mode:
Diffstat (limited to 'webgen')
-rwxr-xr-xwebgen3
1 files changed, 3 insertions, 0 deletions
diff --git a/webgen b/webgen
index d727a62..7dc364d 100755
--- a/webgen
+++ b/webgen
@@ -89,6 +89,9 @@ cat_file() {
none)
cat -- "$_file"
;;
+ cpp)
+ cpp -P -o - -D__TEMPLATE__="\"$_tpl\"" -D__TEMPLATE_CLEAN__="\"$CLEANTPLNAME\"" -D __OUTPUT_FILE__="\"$OF\"" ./"$_file"
+ ;;
*)
echo "Error: Unknown preprocessor: $PREPROCESSOR" >&2
;;