Generate only a single manual.

Added the ability to pass the .md document template as argument to manning-up.sh which will only generate the single document and rename the .1.html correctly before exiting and thus not building the index and all the docs again.
Includes updated documentation.
This commit is contained in:
nickl- 2012-07-22 18:56:24 +02:00
parent 2dc72a1d3b
commit f076565a98
2 changed files with 6 additions and 0 deletions

View file

@ -35,6 +35,10 @@ Alternatively you can run the `manning-up.sh` automated shell script included in
$ ./manning-up.sh
To only (re)generate a specific .md manual template and have `.1.html` renamed to `.html` yau may also use manning-up.sh.
$ ./manning-up.sh git-info.md
## AUTHOR
Written by Leila Muhtasib &lt;<muhtasib@gmail.com>&gt;

View file

@ -1,5 +1,7 @@
#!/bin/bash
test "$1" && ronn $1 && mv -f ${1/.md/}.1.html ${1/.md/}.html && exit 0
echo '# manuals' > index.txt.tmp
ln=$(awk '/## COMMANDS/{print NR};' ./git-extras.md)
awk "NR <= $ln+1" git-extras.md > git-extras.md.tmp