miller/docs6/docs/genmds
John Kerl 4f1424789e
Doc6 proofreads 3 (#638)
* Docs6 proofreads batch 3

* BUild-everything script for local development

* Start of glossary

* Put quicklinks atop every page, not just the base-index page

* Expanded record-heterogeneity page

* streaming page

* separators page

* vimrc doc

* separators page
2021-09-03 23:19:32 -04:00

23 lines
557 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
# Run the live-code bits within the markup files. See README.md for details.
if [ $# -ge 1 ]; then
names="$@"
names=$(echo "$names" | sed 's/\.md\.in//g')
else
names=$(echo *.md.in | sed 's/\.md\.in//g')
fi
for name in $names; do
echo Generating $name.md
if [ -f $name.md ]; then # Won't exist yet on first run
chmod u+w $name.md
fi
# The filename is used for link-generation; file contents
# are read from standard input.
./genmd-filter $name.md.in < $name.md.in > $name.md
chmod 400 $name.md
done