aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/util/mkks.sh
blob: 7af0e51abb181899df1d568fdccc6c75254b67f4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

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); \
}' "$@"