mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
16 lines
323 B
Bash
16 lines
323 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
cd "$@"/docs/
|
||
|
(
|
||
|
echo "# systemd Documentation"
|
||
|
|
||
|
for f in *.md ; do
|
||
|
if [ "x$f" != "xindex.md" ] ; then
|
||
|
t=`grep "^# " "$f" | head -n 1 | sed -e 's/^#\s*//'`
|
||
|
echo -e "\n* [$t]($f)"
|
||
|
fi
|
||
|
done
|
||
|
) > index.md
|