aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/util/mkks.sh
blob: 3e80c354bb5e9a0c99c2a57a8427d1ae193ed9e1 (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); \
}'