| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 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 |
| 3 import sys | 7 import sys |
| 4 | 8 |
| 5 contents = """ | 9 contents = """ |
| 6 #include <stdio.h> | 10 #include <stdio.h> |
| 7 | 11 |
| 8 int main(int argc, char *argv[]) | 12 int main(int argc, char *argv[]) |
| 9 { | 13 { |
| 10 printf("Hello from generate_main.py\\n"); | 14 printf("Hello from generate_main.py\\n"); |
| 11 return 0; | 15 return 0; |
| 12 } | 16 } |
| 13 """ | 17 """ |
| 14 | 18 |
| 15 open(sys.argv[1], 'w').write(contents) | 19 open(sys.argv[1], 'w').write(contents) |
| 16 | 20 |
| 17 sys.exit(0) | 21 sys.exit(0) |
| OLD | NEW |