From b87c424e6ae205b2b0bee22c25c8f47fb8d7501d Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 20 Mar 2009 15:20:35 +0000 Subject: [PATCH] Add the main.c file to the project git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2397 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index ac424f72..7e5642d4 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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","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) -- 2.25.1