Changeset 9975
- Timestamp:
- 04/03/10 02:53:23 (3 years ago)
- Location:
- ossiedev/trunk/tools/WaveDev/wavedev
- Files:
-
- 2 modified
-
ComponentFrame.py (modified) (1 diff)
-
generate/templates/py_comp/genStructure.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/tools/WaveDev/wavedev/ComponentFrame.py
r9661 r9975 1021 1021 os.mkdir(self.path) 1022 1022 1023 #if os.path.exists(self.path + '/aclocal.d') == False:1024 # os.mkdir(self.path + '/aclocal.d')1025 #for f in os.listdir('generate/aclocal.d/'):1026 # if not os.path.isdir(f):1027 # shutil.copy('generate/aclocal.d/' + f,self.path + '/aclocal.d')1028 if self.template != "py_comp":1029 shutil.copy(self.wavedevPath + '/generate/reconf',self.path)1030 chmod(self.path + '/reconf', 0755) 1031 if self.licensefile != "":1023 #if os.path.exists(self.path + '/aclocal.d') == False: 1024 # os.mkdir(self.path + '/aclocal.d') 1025 #for f in os.listdir('generate/aclocal.d/'): 1026 # if not os.path.isdir(f): 1027 # shutil.copy('generate/aclocal.d/' + f,self.path + '/aclocal.d') 1028 shutil.copy(self.wavedevPath + '/generate/reconf',self.path) 1029 chmod(self.path + '/reconf', 0755) 1030 1031 if self.licensefile != "": 1032 1032 shutil.copy(self.licensefile,self.path + '/LICENSE') 1033 1033 -
ossiedev/trunk/tools/WaveDev/wavedev/generate/templates/py_comp/genStructure.py
r9974 r9975 89 89 output.close() #done creating the file 90 90 91 92 91 output = open(compPath + 'Makefile.am', 'w') 92 ts = "ACLOCAL_AMFLAGS = -I m4\n" 93 ts = ts + "EXTRA_DIST = " + comp.name + ".prf.xml " + comp.name + ".scd.xml " + comp.name + ".spd.xml " + "setup.py\n" 94 ts = ts + "install-exec-hook:\n\tpython setup.py install\n" 95 output.writelines(ts) 96 97 output.close() 93 98 94 99 … … 101 106 ############################################################################## 102 107 ''' 103 pass 104 105 108 if genPath[len(genPath)-1] != '/': 109 genPath = genPath + '/' 110 111 output = open(genPath + 'configure.ac', 'w') 112 ts = "AC_INIT(" + name + ", 0.8.1)\n" 113 ts = ts + "AM_INIT_AUTOMAKE\n" 114 ts = ts + "AM_PATH_PYTHON([2.5])\n" 115 ts = ts + "AC_CONFIG_FILES([Makefile])\n" 116 ts = ts + "AC_OUTPUT" 117 output.writelines(ts) 118 output.close() 106 119 107 120