Debian Codegraph @

scripts/stdmacros

raw
1 #!/bin/bash
2
3 if [ "$#" == "0" ] ; then
4 echo provide scratch filename, destination directory, requested format
5 echo and STD_INCLUDE path to use
6 exit 1
7 fi
8
9 scratchFile=$1
10 directory=$2
11 format=$3
12 std_include=$4
13
14 # the standard macro file $directory/std.${format}.yo is created
15
16 echo "
17 INCWSLEVEL()
18
19 DEFINESYMBOL($format)()
20 " > $scratchFile
21
22 for x in macros/rawmacros/*.raw
23 do
24 scripts/macroseparator.pl $format $x >> $scratchFile
25 done
26
27 echo "DECWSLEVEL()" >> $scratchFile
28
29 scripts/configreplacements $scratchFile \
30 $directory/std.${format}.yo $std_include
31
32
33
34
35