##// END OF EJS Templates
prepare ability to convert template for Tex
prepare ability to convert template for Tex

File last commit:

r9608:7ed23297
r9608:7ed23297
Show More
Makefile
22 lines | 436 B | text/x-makefile | MakefileLexer
all: tex/null.tplx tex/display_priority.tplx
# convert jinja syntax to tex
# cf http://flask.pocoo.org/snippets/55/
tex/%.tplx: %.tpl
@echo 'generating tex equivalent of $^: $@'
@echo '((= autogenerated file do not edit =))' > $@
@sed \
-e 's/{%/((*/g' \
-e 's/%}/*))/g' \
-e 's/{{/(((/g' \
-e 's/}}/)))/g' \
-e 's/{#/((=/g' \
-e 's/#}/=))/g' \
$^ >> $@
clean:
@echo "cleaning generated tplx files..."
@rm tex/*