From: Jasper St. Pierre Date: Wed, 17 Jul 2013 22:56:03 +0000 (-0400) Subject: makekeys: Put a comment describing the origin of the file X-Git-Tag: xkbcommon-0.4.0~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eef3ab236449bfcdb295f8b2e14eee8ea994ca1c;p=platform%2Fupstream%2Flibxkbcommon.git makekeys: Put a comment describing the origin of the file --- 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"