File: createmacros

package info (click to toggle)
yodl 4.04.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,720 kB
  • sloc: ansic: 7,803; perl: 683; cpp: 570; sh: 411; xml: 190; makefile: 164
file content (36 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

# This file creates the std.<format>.yo files, e.g. std.latex.yo

if [ "$#" == "0" ] ; then
    echo provide WIP path, destination path and requested format
    exit 1
fi

WIP=$1/macros
DST=$2
FMT=$3
LOCAL=$4

echo "1:$WIP 2:$DST  3:$FMT 4:$LOCAL" >> /tmp/yodllog


echo "
INCWSLEVEL()

DEFINESYMBOL($FMT)()
" > $WIP

for x in macros/rawmacros/*.raw 
do
    scripts/macroseparator.pl $FMT $x  >> $WIP
done

echo "DECWSLEVEL()" >> $WIP

scripts/configreplacements $WIP $DST/std.$FMT.yo $LOCAL