aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/util/mkks.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlibraries/ecore/src/util/mkks.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/libraries/ecore/src/util/mkks.sh b/libraries/ecore/src/util/mkks.sh
new file mode 100755
index 0000000..6669242
--- /dev/null
+++ b/libraries/ecore/src/util/mkks.sh
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3cat $* | awk 'BEGIN { \
4 printf "/*\n * This file is generated from %s. Do not edit.\n */\n", \
5 "$(INCLUDESRC)/keysymdef.h";\
6} \
7/^#define/ { \
8 len = length($2)-3; \
9 printf("{ \"%s\", %s },\n", substr($2,4,len), $3); \
10}'