File: stdmacros

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 (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