23 lines
434 B
Bash
Executable File
23 lines
434 B
Bash
Executable File
#! /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" -DIMAGE="$1" $2 -
|
|
|