aboutsummaryrefslogtreecommitdiff
path: root/gendocs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-19 11:53:11 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-19 11:53:44 -0400
commit8b2806ea128128e0ff411b71a973909c6f9a022d (patch)
tree38a4b8070492771bb2814b58348437de75c802c1 /gendocs
parent4b9b761cc990f9247083ea28a32d9123bb752818 (diff)
Allow an argument to gendocs to convert only specific files
Diffstat (limited to 'gendocs')
-rwxr-xr-xgendocs8
1 files changed, 7 insertions, 1 deletions
diff --git a/gendocs b/gendocs
index 81eeae5d..812f3479 100755
--- a/gendocs
+++ b/gendocs
@@ -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