makekeys: Put a comment describing the origin of the file
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 17 Jul 2013 22:56:03 +0000 (18:56 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 1 Jan 2014 18:03:32 +0000 (13:03 -0500)
makekeys.py
src/ks_tables.h

index 885461d..4cb4282 100644 (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 = {}
 
index f0c606b..c4d3c45 100644 (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"