2009-11-10 22:06:12 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
while IFS=: read field value; do
|
|
|
|
case "$field" in
|
|
|
|
"")
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
Title)
|
|
|
|
# echo strips leading and trailing whitespace
|
|
|
|
title=$(echo $value)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2010-12-03 16:25:12 -07:00
|
|
|
m4 | markdown | m4 -DTITLE="$title" $1 -
|