homepage/tartans/tartantomdwn

23 lines
440 B
Plaintext
Raw Normal View History

2009-11-13 17:09:22 -07:00
#! /bin/sh
header () {
while IFS=: read key val; do
tval=$(echo $val | sed "s/'/\'/g")
case $key in
Name)
echo -n "TARTAN='$tval';"
;;
Sett)
echo -n "SETT='$tval'"
;;
"")
break
;;
esac
done
}
eval $(header)
m4 -DTARTAN="$TARTAN" -DSETT="$SETT" -DBASE="$1" tartan.m4 -