diff options
Diffstat (limited to 'src/util/mkks.sh')
-rw-r--r-- | src/util/mkks.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util/mkks.sh b/src/util/mkks.sh new file mode 100644 index 00000000..262cc954 --- /dev/null +++ b/src/util/mkks.sh @@ -0,0 +1,11 @@ +#!/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); \ +}' + |