From eb3949d085dd57824e855fc2ebf9a05a9721dc5c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 21 Sep 2025 11:43:46 +0000 Subject: [PATCH] jw-pkg: Support -c option (template file attribute definition pattern) jw-pkg determines the file attributes of template compilation output via a line matching the '^#\s*conf' regular expression. Allow that regex to be configured. Signed-off-by: Jan Lindemann --- scripts/jw-pkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/jw-pkg b/scripts/jw-pkg index 02fe1d7f..6afb0759 100644 --- a/scripts/jw-pkg +++ b/scripts/jw-pkg @@ -309,6 +309,10 @@ cmd_compile_templates() -b) backup=1 ;; + -c) + conf_patt="$2" + shift + ;; *) usage 1 ;;