summaryrefslogblamecommitdiff
path: root/src/utils/ecore/mkks.sh
blob: 666924258a73b197f76b0defbe6a53b7e519625d (plain) (tree)
1
2
3
4
5
6
7
8
9
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); \
}'