aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/util/mkks.sh
blob: 262cc9540ca6ae54aa2a5a1a3fabfa972a0b2586 (plain)
1
2
3
4
5
6
7
8
9
10
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); \
}'