aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/util/mkks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/src/util/mkks.sh')
-rw-r--r--nx-X11/lib/src/util/mkks.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/nx-X11/lib/src/util/mkks.sh b/nx-X11/lib/src/util/mkks.sh
new file mode 100644
index 000000000..ab5ca80c9
--- /dev/null
+++ b/nx-X11/lib/src/util/mkks.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cat $* | awk 'BEGIN { \
+ printf "/*\n * This file is generated from %s. Do not edit.\n */\n", \
+ "$(INCLUDESRC)/keysymdef.h";\
+} \
+/^#define/ { \
+ len = length($2)-3; \
+ printf("{ \"%s\", %s },\n", substr($2,4,len), $3); \
+}'