diff --git a/makekeys.py b/makekeys.py index 885461d..4cb4282 100644 --- a/makekeys.py +++ b/makekeys.py @@ -6,7 +6,13 @@ pattern = re.compile(r'^#define\s+XKB_KEY_(?P\w+)\s+(?P0x[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 = {} diff --git a/src/ks_tables.h b/src/ks_tables.h index f0c606b..c4d3c45 100644 --- a/src/ks_tables.h +++ b/src/ks_tables.h @@ -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"