3 PROJECTS_BASE="$HOME/src"
6 while getopts "ds" opt; do
18 for PROJECT in lilass schsh; do
20 if [ -n "$DEVEL" ]; then
21 INFILE="$PROJECTS_BASE/$PROJECT/README.md"
23 cd "$PROJECTS_BASE/$PROJECT"
24 git show master:README.rst > "$TMPFILE"
28 OUTFILE="projects/$PROJECT/index.md"
30 echo "---" > "$OUTFILE"
31 head -n 1 "$INFILE" | sed 's/^# \(.*\)$/title: "\1"/' >> "$OUTFILE"
32 echo "---" >> "$OUTFILE"
34 tail -n +3 "$INFILE" >> "$OUTFILE"
40 if [ -n "$SYNC" ]; then
41 echo "TODO: sync to server"