Add the main.c file to the project
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 20 Mar 2009 15:20:35 +0000 (15:20 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 20 Mar 2009 15:20:35 +0000 (15:20 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2397 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index ac424f727516ed56b53667e56d9bb26a8c31946c..7e5642d4c769eea13f5f310da4ec846bda7267a8 100644 (file)
@@ -68,6 +68,9 @@ def createBertosProject(projectInfo):
     makefile = open("mktemplates/template.mk", "r").read()
     makefile = mkGenerator(projectInfo, makefile)
     open(prjdir + "/" + os.path.basename(prjdir) + ".mk", "w").write(makefile)
+    ## Destination main.c file
+    main = open("srctemplates/main.c",\10"r").read()
+    open(prjdir + "/main.c", "w").write(main)
     if "codelite" in projectInfo.info("OUTPUT"):
         workspace = codeliteWorkspaceGenerator(projectInfo)
         open(directory + "/" + os.path.basename(prjdir) + ".workspace", "w").write(workspace)