mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
0bc7a22d93
This is useful for the github pages feature
16 lines
323 B
Bash
Executable File
16 lines
323 B
Bash
Executable File
#!/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
|