0bc7a22d LP |
1 | #!/bin/sh |
2 | |
3 | set -eu |
4 | |
5 | cd "$@"/docs/ |
6 | ( |
7 | echo "# systemd Documentation" |
8 | |
9 | for f in *.md ; do |
10 | if [ "x$f" != "xindex.md" ] ; then |
11 | t=`grep "^# " "$f" | head -n 1 | sed -e 's/^#\s*//'` |
12 | echo -e "\n* [$t]($f)" |
13 | fi |
14 | done |
15 | ) > index.md |