]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/make-index-md.sh
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / tools / make-index-md.sh
1 #!/bin/sh
2
3 set -eu
4
5 cd "$@"/docs/
6 (
7 echo -e "# systemd Documentation\n"
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 u="https://systemd.io/"`echo "$f" | sed -e 's/.md$//'`
13 echo "* [$t]($u)"
14 fi
15 done
16 ) > index.md