Changeset 234
- Timestamp:
- 04/28/11 23:59:08 (14 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r232 r234 13 13 doc_targets=('doc-trunk',) 14 14 all_targets = source_targets+win32_targets+doc_targets 15 16 15 17 16 … … 41 40 ''' 42 41 42 svnversion_cmds=''' 43 svn info svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup\ 44 | grep "Last Changed Rev:" | cut -d' ' -f 4 \ 45 | sed 's/^/REGFI_VERSION="svn-/' | sed 's/$/"/' > .export/%s/regfi_version.py 46 ''' 47 43 48 cleanup_cmds=''' 44 49 rm -rf .export … … 46 51 47 52 source_cmds=''' 48 cd %s && scons doc 49 mv %s %s && tar cf %s.tar %s && gzip -9 %s.tar; 53 mv %s .export/%s 54 cd .export/%s && scons doc 55 cd .export && tar cf %s.tar %s && gzip -9 %s.tar 56 mv .export/%s.tar.gz . 50 57 '''+cleanup_cmds 51 58 … … 79 86 80 87 if ttype == 'src': 81 ret_val += source_cmds % (input_prefix, input_prefix, t_base, t_base, t_base, t_base) 88 ret_val += source_cmds % (input_prefix, t_base, t_base, t_base, 89 t_base, t_base, t_base) 82 90 elif ttype == 'win32': 83 91 env['platform']='cygwin' … … 169 177 i = version2input(version) 170 178 env.Execute(export_cmds % (i, i)) 171 if version != 'trunk': 179 if version == 'trunk': 180 env.Execute(svnversion_cmds % i) 181 else: 172 182 env.Execute(version_cmds % (version, i)) 173 183 env.Release(target, Dir('.export/'+i)) -
trunk/SConstruct
r232 r234 1 1 import sys 2 2 import os 3 sys.dont_write_bytecode = True 3 4 from regfi_version import REGFI_VERSION 4 5
Note: See TracChangeset
for help on using the changeset viewer.