diff options
Diffstat (limited to 'nls/convert.awk')
-rw-r--r-- | nls/convert.awk | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/nls/convert.awk b/nls/convert.awk deleted file mode 100644 index e10f0b5..0000000 --- a/nls/convert.awk +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /^\$set/ { | ||
2 | major++ | ||
3 | minor = 0 | ||
4 | |||
5 | if (major > 1) | ||
6 | printf "\n" > output | ||
7 | else if (codeset) | ||
8 | printf "$ codeset=%s\n", codeset > output | ||
9 | printf "$set %d %s\n", major, $3 >> output | ||
10 | |||
11 | if (header) { | ||
12 | majorName = substr($3, 2) | ||
13 | if (major > 1) | ||
14 | printf "\n" > header | ||
15 | printf "\t%sSet = %#x,\n", majorName, major >> header | ||
16 | } | ||
17 | } | ||
18 | |||
19 | /^\$ #/ { | ||
20 | minor++ | ||
21 | |||
22 | if (header) { | ||
23 | minorName = substr($2, 2) | ||
24 | printf "\t%s%s = %#x,\n", majorName, minorName, minor >> header | ||
25 | } | ||
26 | } | ||
27 | |||
28 | /^#/ { | ||
29 | text = substr($0, 3) | ||
30 | printf "%d %s\n", minor, text > output | ||
31 | } | ||
32 | |||
33 | ! /^(\$|#)/ { print > output } | ||
34 | |||