makekeys: Put a comment describing the origin of the file

master
Jasper St. Pierre 2013-07-17 18:56:03 -04:00
parent 68c61e7f7d
commit eef3ab2364
2 changed files with 13 additions and 2 deletions

View File

@ -6,7 +6,13 @@ pattern = re.compile(r'^#define\s+XKB_KEY_(?P<name>\w+)\s+(?P<value>0x[0-9a-fA-F
matches = [pattern.match(line) for line in open(sys.argv[1])]
entries = [(m.group("name"), int(m.group("value"), 16)) for m in matches if m]
print('/* This file is autogenerated from Makefile.am; please do not commit directly. */\n')
print('''
/**
* This file comes from libxkbcommon and was generated by makekeys.py
* You can always fetch the latest version from:
* https://raw.github.com/xkbcommon/libxkbcommon/master/src/ks_tables.h
*/
''')
entry_offsets = {}

View File

@ -1,4 +1,9 @@
/* This file is autogenerated from Makefile.am; please do not commit directly. */
/**
* This file comes from libxkbcommon and was generated by makekeys.py
* You can always fetch the latest version from:
* https://raw.github.com/xkbcommon/libxkbcommon/master/src/ks_tables.h
*/
const char *keysym_names =
"0\0"