Changeset 238 for SConstruct


Ignore:
Timestamp:
04/29/11 16:36:13 (14 years ago)
Author:
tim
Message:

moved development documentation back to old location, adjusted build scripts accordingly

misc documentation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SConstruct

    r237 r238  
    99libtalloc_path='.export/win32/libtalloc/'
    1010
    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
     11source_targets=('src-trunk', 'src-0.99.0')
     12win32_targets=('win32-trunk', 'win32-0.99.0')
     13all_targets = source_targets+win32_targets
    1514
    1615
     
    3029export_cmds='''
    3130rm -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
     31svn export --depth files svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup .export
     32svn export svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup/win32 .export/win32
     33svn export svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup/%(path)s .export/%(path)s
    3634'''
    3735
    3836version_cmds='''
    39 echo 'REGFI_VERSION="%s"' > .export/%s/regfi_version.py
     37echo 'REGFI_VERSION="%(version)s"' > .export/%(path)s/regfi_version.py
    4038'''
    4139
    4240svnversion_cmds='''
    43 svn info svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup\
     41svn info svn+ssh://%(user)s@sentinelchicken.org/home/projects/subversion/reglookup\
    4442  | grep "Last Changed Rev:" | cut -d' ' -f 4 \
    45   | sed 's/^/REGFI_VERSION="svn-/' | sed 's/$/"/' > .export/%s/regfi_version.py
     43  | sed 's/^/REGFI_VERSION="svn-/' | sed 's/$/"/' > .export/%(path)s/regfi_version.py
    4644'''
    4745
     
    6967'''+cleanup_cmds
    7068
    71 doc_cmds='''
    72 cd .export && doxygen Doxyfile.regfi
    73 cd .export && doxygen Doxyfile.pyregfi
    74 mv .export/doc .export/%s
    75 cd .export && tar cf %s.tar %s && gzip -9 %s.tar
    76 mv .export/%s.tar.gz .
    77 '''+cleanup_cmds
    7869
    7970def generate_cmds(source, target, env, for_signature):
     
    148139                                     t_base,t_base,t_base,t_base)
    149140
    150         elif ttype == 'doc':
    151             ret_val += doc_cmds % (t_base,t_base,t_base,t_base,t_base)
    152        
    153141    return ret_val
    154142
     
    175163    ttype,version = parse_target(target)
    176164
    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)
    179169    if version == 'trunk':
    180         env.Execute(svnversion_cmds % i)
     170        print env.Execute(svnversion_cmds % params)
    181171    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']))
    184174
    185175Default(None)
Note: See TracChangeset for help on using the changeset viewer.