summaryrefslogtreecommitdiff
path: root/nls
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-04 18:20:33 (GMT)
committerfluxgen <fluxgen>2002-04-04 18:20:33 (GMT)
commitd78a4ac9a983e6ef20e3ddc97af50a963e35c54d (patch)
treeda6d13dc18385dd0fa57a23069fc13e882c1d8c5 /nls
parent08ae57e646e0b165f59e4988de2ae84ea74713d5 (diff)
downloadfluxbox_lack-d78a4ac9a983e6ef20e3ddc97af50a963e35c54d.zip
fluxbox_lack-d78a4ac9a983e6ef20e3ddc97af50a963e35c54d.tar.bz2
minor fix
Diffstat (limited to 'nls')
-rw-r--r--nls/C/Makefile.am1
-rw-r--r--nls/convert.awk6
2 files changed, 4 insertions, 3 deletions
diff --git a/nls/C/Makefile.am b/nls/C/Makefile.am
index 2b73745..a7b50ba 100644
--- a/nls/C/Makefile.am
+++ b/nls/C/Makefile.am
@@ -43,6 +43,7 @@ Translation.m: $(MFILES)
43 echo -e "enum {" >> ../blackbox-nls.hh; \ 43 echo -e "enum {" >> ../blackbox-nls.hh; \
44 awk -f ../convert.awk header=../blackbox-nls.hh \ 44 awk -f ../convert.awk header=../blackbox-nls.hh \
45 output=Translation.m $(MFILES); \ 45 output=Translation.m $(MFILES); \
46 echo -e " dummy_not_used = 0 //just for the ending" >> ../blackbox-nls.hh; \
46 echo -e "}; //end enum\n" >> ../blackbox-nls.hh; \ 47 echo -e "}; //end enum\n" >> ../blackbox-nls.hh; \
47 echo -e "}; //end namespace\n" >> ../blackbox-nls.hh; \ 48 echo -e "}; //end namespace\n" >> ../blackbox-nls.hh; \
48 echo -e "#endif //BLACKBOX_NLS_HH\n" >> ../blackbox-nls.hh; \ 49 echo -e "#endif //BLACKBOX_NLS_HH\n" >> ../blackbox-nls.hh; \
diff --git a/nls/convert.awk b/nls/convert.awk
index 744179c..813c470 100644
--- a/nls/convert.awk
+++ b/nls/convert.awk
@@ -4,13 +4,13 @@
4 4
5 if (major > 1) 5 if (major > 1)
6 printf "\n" > output 6 printf "\n" > output
7 printf "$set %d %s\n", major, $3 > output 7 printf "$set %d %s\n", major, $3 >> output
8 8
9 if (header) { 9 if (header) {
10 majorName = substr($3, 2) 10 majorName = substr($3, 2)
11 if (major > 1) 11 if (major > 1)
12 printf "\n" > header 12 printf "\n" > header
13 printf "#define %sSet %#x\n", majorName, major > header 13 printf "\t%sSet = %#x,\n", majorName, major >> header
14 } 14 }
15} 15}
16 16
@@ -19,7 +19,7 @@
19 19
20 if (header) { 20 if (header) {
21 minorName = substr($2, 2) 21 minorName = substr($2, 2)
22 printf "#define %s%s %#x\n", majorName, minorName, minor > header 22 printf "\t%s%s = %#x,\n", majorName, minorName, minor >> header
23 } 23 }
24} 24}
25 25