Changeset 238 for SConstruct
- Timestamp:
- 04/29/11 16:36:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r237 r238 9 9 libtalloc_path='.export/win32/libtalloc/' 10 10 11 source_targets=('src-trunk', 'src-0.99.0',) 12 win32_targets=('win32-trunk', 'win32-0.99.0',) 13 doc_targets=('doc-trunk', 'doc-0.99.0',) 14 all_targets = source_targets+win32_targets+doc_targets 11 source_targets=('src-trunk', 'src-0.99.0') 12 win32_targets=('win32-trunk', 'win32-0.99.0') 13 all_targets = source_targets+win32_targets 15 14 16 15 … … 30 29 export_cmds=''' 31 30 rm -rf .export 32 svn export --depth files svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup .export 33 svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/doc .export/doc 34 svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/win32 .export/win32 35 svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/%s .export/%s 31 svn export --depth files svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup .export 32 svn export svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup/win32 .export/win32 33 svn export svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup/%(path)s .export/%(path)s 36 34 ''' 37 35 38 36 version_cmds=''' 39 echo 'REGFI_VERSION="% s"' > .export/%s/regfi_version.py37 echo 'REGFI_VERSION="%(version)s"' > .export/%(path)s/regfi_version.py 40 38 ''' 41 39 42 40 svnversion_cmds=''' 43 svn info svn+ssh:// sentinelchicken.org/home/projects/subversion/reglookup\41 svn info svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup\ 44 42 | grep "Last Changed Rev:" | cut -d' ' -f 4 \ 45 | sed 's/^/REGFI_VERSION="svn-/' | sed 's/$/"/' > .export/% s/regfi_version.py43 | sed 's/^/REGFI_VERSION="svn-/' | sed 's/$/"/' > .export/%(path)s/regfi_version.py 46 44 ''' 47 45 … … 69 67 '''+cleanup_cmds 70 68 71 doc_cmds='''72 cd .export && doxygen Doxyfile.regfi73 cd .export && doxygen Doxyfile.pyregfi74 mv .export/doc .export/%s75 cd .export && tar cf %s.tar %s && gzip -9 %s.tar76 mv .export/%s.tar.gz .77 '''+cleanup_cmds78 69 79 70 def generate_cmds(source, target, env, for_signature): … … 148 139 t_base,t_base,t_base,t_base) 149 140 150 elif ttype == 'doc':151 ret_val += doc_cmds % (t_base,t_base,t_base,t_base,t_base)152 153 141 return ret_val 154 142 … … 175 163 ttype,version = parse_target(target) 176 164 177 i = version2input(version) 178 env.Execute(export_cmds % (i, i)) 165 params = {'user':os.environ['USER'], 166 'path':version2input(version), 167 'version':version} 168 env.Execute(export_cmds % params) 179 169 if version == 'trunk': 180 env.Execute(svnversion_cmds % i)170 print env.Execute(svnversion_cmds % params) 181 171 else: 182 env.Execute(version_cmds % (version, i))183 env.Release(target, Dir('.export/'+ i))172 env.Execute(version_cmds % params) 173 env.Release(target, Dir('.export/'+params['path'])) 184 174 185 175 Default(None)
Note: See TracChangeset
for help on using the changeset viewer.