Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env python |
2 | |||||
3 | # Copyright (c) 2009 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 | import sys | ||||
8 | |||||
9 | contents = r""" | ||||
10 | #include <stdio.h> | ||||
11 | |||||
12 | void prog1(void) | ||||
13 | { | ||||
14 | printf("Hello from make-prog1.py\n"); | ||||
15 | } | ||||
16 | """ | ||||
17 | |||||
18 | open(sys.argv[1], 'w').write(contents) | ||||
19 | |||||
20 | sys.exit(0) |