OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (C) 2009 Google Inc. All rights reserved. | 3 # Copyright (C) 2009 Google Inc. All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 assert tagInput == None | 124 assert tagInput == None |
125 tagInput = inputAbsPosix | 125 tagInput = inputAbsPosix |
126 elif inputBasename.endswith('AttributeNames.in') or inputBasename.endswi
th('attrs.in'): | 126 elif inputBasename.endswith('AttributeNames.in') or inputBasename.endswi
th('attrs.in'): |
127 assert attrInput == None | 127 assert attrInput == None |
128 attrInput = inputAbsPosix | 128 attrInput = inputAbsPosix |
129 elif (inputBasename.endswith('EventTargetFactory.in') or inputBasename.e
ndswith('EventNames.in') | 129 elif (inputBasename.endswith('EventTargetFactory.in') or inputBasename.e
ndswith('EventNames.in') |
130 or inputBasename.endswith('DOMExceptions.in') or inputBasename.endsw
ith('Settings.in')): | 130 or inputBasename.endswith('DOMExceptions.in') or inputBasename.endsw
ith('Settings.in')): |
131 eventsInput = inputAbsPosix | 131 eventsInput = inputAbsPosix |
132 elif inputBasename.endswith('Names.in'): | 132 elif inputBasename.endswith('Names.in'): |
133 options.append(inputAbsPosix) | 133 options.append(inputAbsPosix) |
| 134 elif inputBasename.endswith('.pm'): |
| 135 continue |
134 else: | 136 else: |
135 assert False | 137 assert False |
136 | 138 |
137 assert makeNamesInput != None | 139 assert makeNamesInput != None |
138 assert tagInput != None or attrInput != None or eventsInput != None or ('--f
onts' in options) | 140 assert tagInput != None or attrInput != None or eventsInput != None or ('--f
onts' in options) |
139 | 141 |
140 # scriptsPath is a Perl include directory, located relative to | 142 # scriptsPath is a Perl include directory, located relative to |
141 # makeNamesInput. | 143 # makeNamesInput. |
142 scriptsPath = os.path.normpath( | 144 scriptsPath = os.path.normpath( |
143 os.path.join(os.path.dirname(makeNamesInput), os.pardir, 'bindings', 'sc
ripts')) | 145 os.path.join(os.path.dirname(makeNamesInput), os.pardir, 'bindings', 'sc
ripts')) |
(...skipping 27 matching lines...) Expand all Loading... |
171 src = os.path.join(outputDir, outputBasename) | 173 src = os.path.join(outputDir, outputBasename) |
172 dst = os.path.join(thisOutputDir, outputBasename) | 174 dst = os.path.join(thisOutputDir, outputBasename) |
173 shutil.copyfile(src, dst) | 175 shutil.copyfile(src, dst) |
174 os.unlink(src) | 176 os.unlink(src) |
175 | 177 |
176 return returnCode | 178 return returnCode |
177 | 179 |
178 | 180 |
179 if __name__ == '__main__': | 181 if __name__ == '__main__': |
180 sys.exit(main(sys.argv)) | 182 sys.exit(main(sys.argv)) |
OLD | NEW |