Debian Codegraph @

scripts/createmacros

raw
1 #!/bin/bash
2
3 # This file creates the std.<format>.yo files, e.g. std.latex.yo
4
5 if [ "$#" == "0" ] ; then
6 echo provide WIP path, destination path and requested format
7 exit 1
8 fi
9
10 WIP=$1/macros
11 DST=$2
12 FMT=$3
13 LOCAL=$4
14
15 echo "1:$WIP 2:$DST 3:$FMT 4:$LOCAL" >> /tmp/yodllog
16
17
18 echo "
19 INCWSLEVEL()
20
21 DEFINESYMBOL($FMT)()
22 " > $WIP
23
24 for x in macros/rawmacros/*.raw
25 do
26 scripts/macroseparator.pl $FMT $x >> $WIP
27 done
28
29 echo "DECWSLEVEL()" >> $WIP
30
31 scripts/configreplacements $WIP $DST/std.$FMT.yo $LOCAL
32
33
34
35
36