From f24c016c90d7a0ab2339a63d1075f2be70c86a42 Mon Sep 17 00:00:00 2001
From: mx <1123852253@qq.com>
Date: Sat, 7 Nov 2020 12:06:21 +0800
Subject: Rename project template file name
---
tools/codelite.py | 12 ++++----
tools/codelite_template.project | 61 +++++++++++++++++++++++++++++++++++++++
tools/codelite_template.workspace | 10 +++++++
tools/template.project | 61 ---------------------------------------
tools/template.workspace | 10 -------
5 files changed, 77 insertions(+), 77 deletions(-)
create mode 100644 tools/codelite_template.project
create mode 100644 tools/codelite_template.workspace
delete mode 100644 tools/template.project
delete mode 100644 tools/template.workspace
(limited to 'tools')
diff --git a/tools/codelite.py b/tools/codelite.py
index d63f9fbb72..d6fb2d892b 100644
--- a/tools/codelite.py
+++ b/tools/codelite.py
@@ -126,10 +126,10 @@ def CLAddCFiles(parent, files, project_path):
def CLGenWorkspace(project_name, project_path):
- if os.path.isfile('template.workspace'):
- tree = etree.parse('template.workspace')
+ if os.path.isfile('codelite_template.workspace'):
+ tree = etree.parse('codelite_template.workspace')
else:
- tree = etree.parse(os.path.join(os.path.dirname(__file__), 'template.workspace'))
+ tree = etree.parse(os.path.join(os.path.dirname(__file__), 'codelite_template.workspace'))
root = tree.getroot()
root.attrib['Name'] = project_name
@@ -153,10 +153,10 @@ def TargetCodelite(script, program):
project_path = os.path.abspath('.')
CLGenWorkspace(project_name, project_path)
- if os.path.isfile('template.project'):
- tree = etree.parse('template.project')
+ if os.path.isfile('codelite_template.project'):
+ tree = etree.parse('codelite_template.project')
else:
- tree = etree.parse(os.path.join(os.path.dirname(__file__), 'template.project'))
+ tree = etree.parse(os.path.join(os.path.dirname(__file__), 'codelite_template.project'))
root = tree.getroot()
root.attrib['Name'] = project_name
diff --git a/tools/codelite_template.project b/tools/codelite_template.project
new file mode 100644
index 0000000000..0aa0ecc4c7
--- /dev/null
+++ b/tools/codelite_template.project
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ monitor reset
+monitor halt
+load
+
+
+
+
+ arm-none-eabi-objcopy -O ihex $(IntermediateDirectory)/$(ProjectName).elf $(IntermediateDirectory)/$(ProjectName).hex
+ arm-none-eabi-objcopy -I ihex -O binary $(IntermediateDirectory)/$(ProjectName).hex $(IntermediateDirectory)/$(ProjectName).bin
+ arm-none-eabi-size $(IntermediateDirectory)/$(ProjectName).elf
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tools/codelite_template.workspace b/tools/codelite_template.workspace
new file mode 100644
index 0000000000..8f06e0ce2b
--- /dev/null
+++ b/tools/codelite_template.workspace
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/tools/template.project b/tools/template.project
deleted file mode 100644
index 0aa0ecc4c7..0000000000
--- a/tools/template.project
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- monitor reset
-monitor halt
-load
-
-
-
-
- arm-none-eabi-objcopy -O ihex $(IntermediateDirectory)/$(ProjectName).elf $(IntermediateDirectory)/$(ProjectName).hex
- arm-none-eabi-objcopy -I ihex -O binary $(IntermediateDirectory)/$(ProjectName).hex $(IntermediateDirectory)/$(ProjectName).bin
- arm-none-eabi-size $(IntermediateDirectory)/$(ProjectName).elf
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tools/template.workspace b/tools/template.workspace
deleted file mode 100644
index 8f06e0ce2b..0000000000
--- a/tools/template.workspace
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
--
cgit v1.3.1