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