diff options
| author | Philipp Schafft <lion@lion.leolix.org> | 2016-06-18 16:59:19 +0000 |
|---|---|---|
| committer | Philipp Schafft <lion@lion.leolix.org> | 2017-03-27 02:11:20 +0000 |
| commit | d2a812ffb0891fb2a763f0dfdc941ac0d3353481 (patch) | |
| tree | c2298c234f8e59d897b9c2c95eff54e1d0c75958 | |
| parent | 997d0efd6e66b560a2308915e2410e8095b871a2 (diff) | |
Feature: added --list to list all templates to compile
| -rwxr-xr-x | webgen | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -72,6 +72,10 @@ setup() { } > ./-end } +list_tpls() { + cd $TPLS + ls -1 -- +* \~* =* 2> /dev/null +} TEMPLATES_PAGE="*" TEMPLATES_DYN="*" @@ -92,6 +96,10 @@ do setup exit 0 ;; + '--list') + list_tpls + exit 0 + ;; '--'*) echo "Error: Unknown option: $1" >&2 exit 1 |
