man_from_git.sh - randomcrap - random crap programs of varying quality
HTML git clone git://git.codemadness.org/randomcrap
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
man_from_git.sh (376B)
---
1 #!/bin/sh
2 # generate man page outputs from git repositories.
3
4 for p in /home/src/src/*; do
5 test -d "$p" || continue
6
7 GIT_DIR="$p" git ls-tree --name-only master | while read -r f; do
8 case "$f" in
9 *.[0-9])
10 GIT_DIR="$p" git show "master:$f" | mandoc -T utf8 | col -bx > "$f.txt"
11 GIT_DIR="$p" git show "master:$f" | mandoc -T html > "$f.html"
12 ;;
13 esac
14 done
15 done