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