diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-19 11:53:11 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-19 11:53:44 -0400 |
| commit | 8b2806ea128128e0ff411b71a973909c6f9a022d (patch) | |
| tree | 38a4b8070492771bb2814b58348437de75c802c1 /gendocs | |
| parent | 4b9b761cc990f9247083ea28a32d9123bb752818 (diff) | |
Allow an argument to gendocs to convert only specific files
Diffstat (limited to 'gendocs')
| -rwxr-xr-x | gendocs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ #! /usr/bin/env bash -for f in *.md */*.md; do g=${f/README/index}; ./dzref md.bqn "•←ConvertFile \"$f\"" > docs/${g%md}html; done +# Generate HTML files from markdown ones +# Argument gives specific files if present; otherwise convert everything +for f in ${1-*.md */*.md} ${@:2:$#} +do + g=${f/README/index} + ./dzref md.bqn "•←ConvertFile \"$f\"" > docs/${g%md}html +done |
