djgpp-specific stuff
[s-roff.git] / gendef.sh
blobe2b2575ffbd4d8c0197ffdbc46e10abe50687324
1 # gendef filename var=val var=val
3 file=$1
4 shift
6 defs="#define $1"
7 shift
8 for def
9 do
10 defs="$defs
11 #define $def"
12 done
14 t=/tmp/groff.$$
16 sed -e 's/=/ /' >$t <<EOF
17 $defs
18 EOF
20 test -r $file && cmp -s $t $file || cp $t $file
22 rm -f $t
24 exit 0