aboutsummaryrefslogtreecommitdiff
path: root/nls/convert.awk
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-06-20 13:48:46 (GMT)
committerrathnor <rathnor>2004-06-20 13:48:46 (GMT)
commitc144177c5c43ce35cf8c7b0e888a597d6292b39a (patch)
tree23c3fc18b03aa61918bc7fb4c6f7e69dd795f5b1 /nls/convert.awk
parentabc86f0028402a54ef74c378cf5b6805f01e0347 (diff)
downloadfluxbox-c144177c5c43ce35cf8c7b0e888a597d6292b39a.zip
fluxbox-c144177c5c43ce35cf8c7b0e888a597d6292b39a.tar.bz2
Conversion of old nls files to new string names...
Change to new style of working.
Diffstat (limited to 'nls/convert.awk')
-rw-r--r--nls/convert.awk34
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