File: stdmacros

package info (click to toggle)
yodl 3.04.00-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,272 kB
  • ctags: 873
  • sloc: ansic: 7,670; perl: 683; sh: 358; makefile: 205; xml: 190; cpp: 155
file content (35 lines) | stat: -rwxr-xr-x 606 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
#!/bin/bash

if [ "$#" == "0" ] ; then
    echo provide scratch filename, destination directory, requested format
    echo and STD_INCLUDE path to use
    exit 1
fi

scratchFile=$1
directory=$2
format=$3
std_include=$4

    # the standard macro file $directory/std.${format}.yo is created 

echo "
INCWSLEVEL()

DEFINESYMBOL($format)()
" > $scratchFile

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

echo "DECWSLEVEL()" >> $scratchFile

scripts/configreplacements $scratchFile \
                           $directory/std.${format}.yo $std_include