change the way we expect the header to look in the README
authorRalf Jung <post@ralfj.de>
Wed, 7 Oct 2015 11:45:37 +0000 (13:45 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 7 Oct 2015 11:45:37 +0000 (13:45 +0200)
build.sh

index 4305b3b..56157d3 100755 (executable)
--- 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"