]> Dogcows Code - chaz/openbox/blob - nls/convert.awk
make auto-raise value load.
[chaz/openbox] / nls / convert.awk
1 /^\$set/ {
2 major++
3 minor = 0
4
5 if (major > 1)
6 printf "\n" > output
7 printf "$set %d %s\n", major, $3 > output
8
9 if (header) {
10 majorName = substr($3, 2)
11 if (major > 1)
12 printf "\n" > header
13 printf "#define %sSet %#x\n", majorName, major > header
14 }
15 }
16
17 /^\$ #/ {
18 minor++
19
20 if (header) {
21 minorName = substr($2, 2)
22 printf "#define %s%s %#x\n", majorName, minorName, minor > header
23 }
24 }
25
26 /^#/ {
27 text = substr($0, 3)
28 printf "%d %s\n", minor, text > output
29 }
30
31 ! /^(\$|#)/ { print > output }
32
This page took 0.033274 seconds and 4 git commands to generate.