From 4bd6a37ba9ce30f09fb73d7006c77524c558993b Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 2 Feb 2009 10:34:24 +0000 Subject: [PATCH] Move the mk template in the templates dir in wizard source tree git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2248 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 5 ++--- template.mk => wizard/mktemplates/template.mk | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename template.mk => wizard/mktemplates/template.mk (100%) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index f0089b4a..6fbd254a 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -59,9 +59,9 @@ def createBertosProject(projectInfos): f.write(string) f.close() ## Destinatio mk file - makefile = open(sourcesDir + "/" + "template.mk", "r").read() + makefile = open("mktemplates/template.mk", "r").read() makefile = mkGenerator(projectInfos, makefile) - open(prjdir + "/" + "template.km", "w").write(makefile) + open(prjdir + "/" + "template.mk", "w").write(makefile) def mkGenerator(projectInfos, makefile): """ @@ -73,7 +73,6 @@ def mkGenerator(projectInfos, makefile): mkData["cflags"] = " ".join(projectInfos.info("CPU_INFOS")["C_FLAGS"]) mkData["ldflags"] = " ".join(projectInfos.info("CPU_INFOS")["LD_FLAGS"]) for key in mkData: - print key, mkData[key] while makefile.find(key) != -1: makefile = makefile.replace(key, mkData[key]) return makefile diff --git a/template.mk b/wizard/mktemplates/template.mk similarity index 100% rename from template.mk rename to wizard/mktemplates/template.mk -- 2.25.1