Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright (c) 2014 Google Inc. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # mock, just outputs empty .h/.cpp files |
| 8 | |
| 9 | import os |
| 10 | import sys |
| 11 | |
| 12 | if len(sys.argv) == 2: |
| 13 | basename, ext = os.path.splitext(sys.argv[1]) |
| 14 | with open('%s.h' % basename, 'w') as f: |
| 15 | f.write('// %s.h\n' % basename) |
| 16 | with open('%s.cpp' % basename, 'w') as f: |
| 17 | f.write('// %s.cpp\n' % basename) |