Ethan Nicholas | aae47c8 | 2017-11-10 15:34:03 -0500 | [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 os |
| 9 | import subprocess |
| 10 | import sys |
| 11 | |
| 12 | src = open(sys.argv[1], 'r') |
| 13 | dst = open(sys.argv[2], 'w') |
Ethan Nicholas | 3bc00fe | 2017-11-16 13:52:16 -0500 | [diff] [blame^] | 14 | dst.write('R"(') |
Ethan Nicholas | aae47c8 | 2017-11-10 15:34:03 -0500 | [diff] [blame] | 15 | for line in src.readlines(): |
| 16 | if not line.startswith("#"): |
| 17 | dst.write(line) |
Ethan Nicholas | 3bc00fe | 2017-11-16 13:52:16 -0500 | [diff] [blame^] | 18 | dst.write(')"\n') |
Ethan Nicholas | aae47c8 | 2017-11-10 15:34:03 -0500 | [diff] [blame] | 19 | src.close() |
| 20 | dst.close() |