From e8acdb6709352f474fd6855afc62044798388bcc Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 7 Oct 2015 13:45:37 +0200 Subject: [PATCH 1/1] change the way we expect the header to look in the README --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2