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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-09-21 11:43:46 +00:00
commit eb3949d085

View file

@ -309,6 +309,10 @@ cmd_compile_templates()
-b)
backup=1
;;
-c)
conf_patt="$2"
shift
;;
*)
usage 1
;;