From: Ralf Jung Date: Wed, 7 Oct 2015 11:45:37 +0000 (+0200) Subject: change the way we expect the header to look in the README X-Git-Url: https://git.ralfj.de/web.git/commitdiff_plain/e8acdb6709352f474fd6855afc62044798388bcc?ds=sidebyside;hp=7747833a9c3f6de9d76141b23827862f8728e98a change the way we expect the header to look in the README --- diff --git a/build.sh b/build.sh index 4305b3b..56157d3 100755 --- a/build.sh +++ b/build.sh @@ -28,7 +28,7 @@ for PROJECT in lilass schsh; do OUTFILE="projects/$PROJECT/index.md" # process it echo "---" > "$OUTFILE" - head -n 1 "$INFILE" | sed 's/\(.*\)/title: "\1"/' >> "$OUTFILE" + head -n 1 "$INFILE" | sed 's/^# \(.*\)$/title: "\1"/' >> "$OUTFILE" echo "---" >> "$OUTFILE" echo >> "$OUTFILE" tail -n +3 "$INFILE" >> "$OUTFILE"