Ethan Nicholas | c18bb51 | 2020-07-28 14:46:53 -0400 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | # Copyright 2017 Google Inc. |
| 4 | # |
| 5 | # Use of this source code is governed by a BSD-style license that can be |
| 6 | # found in the LICENSE file. |
| 7 | |
| 8 | import sys |
| 9 | |
| 10 | def copy(src, dst): |
| 11 | for line in src.readlines(): |
| 12 | if not line.startswith("#"): |
| 13 | dst.write(line) |
| 14 | src.close() |
| 15 | |
| 16 | dst = open(sys.argv[3], 'wb') |
| 17 | dst.write("// *********************************************************\n") |
| 18 | dst.write("// *** AUTOGENERATED BY create_sksl_fp.py, DO NOT EDIT ***\n") |
| 19 | dst.write("// *********************************************************\n\n\n") |
| 20 | copy(open(sys.argv[1], 'r'), dst) |
| 21 | copy(open(sys.argv[2], 'r'), dst) |
| 22 | dst.close() |