yq/scripts/generate-man-page-md.sh

13 lines
253 B
Bash
Raw Normal View History

2021-10-20 04:01:08 +00:00
#! /bin/bash
set -e
# note that this reqires pandoc to be installed.
cat ./pkg/yqlib/doc/headers/Main.md > man.md
printf "\n# HOW IT WORKS\n" >> man.md
2021-11-03 02:54:09 +00:00
tail -n +2 how-it-works.md >> man.md
2021-10-20 04:01:08 +00:00
for f in ./pkg/yqlib/doc/*.md; do
2021-11-03 04:00:58 +00:00
cat "$f" >> man.md
2021-10-20 04:01:08 +00:00
done