Merge lp:~mue-comnets/openwns-sdk/buildsupport-removed into lp:openwns-sdk

Proposed by Maciej Muehleisen
Status: Needs review
Proposed branch: lp:~mue-comnets/openwns-sdk/buildsupport-removed
Merge into: lp:openwns-sdk
Diff against target: None lines
To merge this branch: bzr merge lp:~mue-comnets/openwns-sdk/buildsupport-removed
Reviewer Review Type Date Requested Status
ComNets, RWTH Aachen, University Pending
Review via email: mp+4666@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Maciej Muehleisen (mue-comnets) wrote :

Removed buildsupport from projects.py and playground Update.
Adjusted CreateModul to remove common.py using the old buildsupport.
Test are running and CreateModule still works. Created a new module and compiled it successfully.

config/common.py should be removed from all projects

154. By Maciej Muehleisen

Moved FilePatcher to wnsbase, adjusted CreateModule and setupKDevelop, removed memcheck.py from bin

Revision history for this message
Maciej Muehleisen (mue-comnets) wrote :

In rev. 154 I moved FilePatcher to wnsbase. It is needed by bin/setupKDevelop and CreteModule.

Unmerged revisions

154. By Maciej Muehleisen

Moved FilePatcher to wnsbase, adjusted CreateModule and setupKDevelop, removed memcheck.py from bin

153. By Maciej Muehleisen

Removed patching of common.py from moduleTemplate

152. By Maciej Muehleisen

Removed common.py from moduleTemplate

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config/projects.py.template'
--- config/projects.py.template 2009-02-10 10:52:23 +0000
+++ config/projects.py.template 2009-03-19 13:51:25 +0000
@@ -39,12 +39,6 @@
39 RCS.Bazaar('./tests/unit', 39 RCS.Bazaar('./tests/unit',
40 'unittest', 'main', '1.0'))40 'unittest', 'main', '1.0'))
4141
42buildSupport = Generic('./framework/buildSupport',
43 "openwns-buildsupport/buildsupport--main--1.0",
44 bzrBaseURL,
45 RCS.Bazaar('./framework/buildSupport',
46 'buildsupport', 'main', '1.0'))
47
48documentation = MasterDocumentation('./documentation', 42documentation = MasterDocumentation('./documentation',
49 'openwns-documentation/documentation--main--1.0', 43 'openwns-documentation/documentation--main--1.0',
50 bzrBaseURL,44 bzrBaseURL,
@@ -149,7 +143,6 @@
149all = [143all = [
150 root,144 root,
151 unitTests,145 unitTests,
152 buildSupport,
153 documentation,146 documentation,
154 library,147 library,
155 application,148 application,
156149
=== modified file 'wnsbase/playground/builtins/CreateModule/CreateModule.py'
--- wnsbase/playground/builtins/CreateModule/CreateModule.py 2009-02-24 17:16:42 +0000
+++ wnsbase/playground/builtins/CreateModule/CreateModule.py 2009-03-19 14:00:06 +0000
@@ -133,14 +133,6 @@
133133
134 p = FilePatcher.FilePatcher(os.path.join(dest, "MAINTAINER"), "John Doe <jdoe@doh.no>", maintainer).replaceAll()134 p = FilePatcher.FilePatcher(os.path.join(dest, "MAINTAINER"), "John Doe <jdoe@doh.no>", maintainer).replaceAll()
135135
136 p = FilePatcher.FilePatcher(os.path.join(dest, "config", "common.py"),
137 "PROJNAME = 'projname',",
138 "PROJNAME = '%s'," % moduleName.lower()).replaceAll()
139
140 p = FilePatcher.FilePatcher(os.path.join(dest, "config", "common.py"),
141 "RCS.Bazaar\('../', 'ModuleTemplate', 'main', '1.0'\),",
142 "RCS.Bazaar('../', '%s', '%s', '%s')," % (moduleName, 'deprecated', 'deprecated')).replaceAll()
143
144 filesToPatch = [os.path.join(dest, "config", "libfiles.py"),136 filesToPatch = [os.path.join(dest, "config", "libfiles.py"),
145 os.path.join(dest, "src", "ProjNameModule.hpp"),137 os.path.join(dest, "src", "ProjNameModule.hpp"),
146 os.path.join(dest, "src", "ProjNameModule.cpp"),138 os.path.join(dest, "src", "ProjNameModule.cpp"),
147139
=== removed file 'wnsbase/playground/builtins/CreateModule/moduleTemplate/config/common.py'
--- wnsbase/playground/builtins/CreateModule/moduleTemplate/config/common.py 2008-08-21 15:45:19 +0000
+++ wnsbase/playground/builtins/CreateModule/moduleTemplate/config/common.py 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1import os
2import CNBuildSupport
3from CNBuildSupport import CNBSEnvironment
4import wnsbase.RCS as RCS
5
6commonEnv = CNBSEnvironment(PROJNAME = 'projname',
7 AUTODEPS = ['wns'],
8 PROJMODULES = ['TEST', 'BASE'],
9 LIBRARY = True,
10 SHORTCUTS = True,
11 FLATINCLUDES = False,
12 REVISIONCONTROL = RCS.Bazaar('../', 'ModuleTemplate', 'main', '1.0'),
13 )
14Return('commonEnv')
150
=== modified file 'wnsbase/playground/builtins/Update/Update.py'
--- wnsbase/playground/builtins/Update/Update.py 2009-02-03 18:08:44 +0000
+++ wnsbase/playground/builtins/Update/Update.py 2009-03-19 13:51:25 +0000
@@ -41,10 +41,8 @@
4141
42 usage += """42 usage += """
4343
44Updates the following projects and rereads the project configuration44Updates the SDK and rereads the project configuration
45afterwards:45afterwards
46 1. openWNS--main--1.0 : Master located at ./
47 2. cn-scons--main--1.0 : Build support located at ./framework/cn-scons--main--1.0
48"""46"""
49 wnsbase.playground.plugins.Command.Command.__init__(self, "update", rationale, usage)47 wnsbase.playground.plugins.Command.Command.__init__(self, "update", rationale, usage)
5048
@@ -72,22 +70,5 @@
72 else:70 else:
73 print "None"71 print "None"
7472
75 sys.stdout.write("Checking for new patches in: %s ... " % ("./framework/buildSupport"))
76 sys.stdout.flush()
77 missing = str(projects.buildSupport.getRCS().missing(projects.buildSupport.getRCSUrl(), {"-s":""}))
78 if(missing != ""):
79 print "Found:"
80 print missing
81 checkForConflictsAndExit("./framework/buildSupport")
82 print "\nRetrieving new patches for './framework/buildSupport/' ..."
83 try:
84 projects.buildSupport.getRCS().update(projects.buildSupport.getRCSUrl()).realtimePrint()
85 checkForConflictsAndExit("./framework/buildSupport")
86 except wnsbase.rcs.Bazaar.BzrMergeNeededException, e:
87 if (not core.userFeedback.askForReject("These branches have diverged! Do you want me to merge?")):
88 projects.buildSupport.getRCS().merge(fromRepository=projects.buildSupport.getRCSUrl()).realtimePrint()
89 else:
90 print "None"
91
92 # Maybe projects.py has changed. Trigger reload73 # Maybe projects.py has changed. Trigger reload
93 core.readProjectsConfig(core.projectsFile)74 core.readProjectsConfig(core.projectsFile)

Subscribers

People subscribed via source and target branches