Changeset 209 for SConstruct


Ignore:
Timestamp:
10/09/10 17:55:44 (14 years ago)
Author:
tim
Message:

worked on pyregfi value data interface

added initial scons target for API/devel documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SConstruct

    r195 r209  
    66libtalloc_path='win32/libtalloc/'
    77
    8 source_targets=('reglookup-trunk.tar.gz',)
    9 win32_targets=('reglookup-trunk-win32.zip',)
     8source_targets=('reglookup-src-trunk.tar.gz',)
     9win32_targets=('reglookup-win32-trunk.zip',)
     10doc_targets=('reglookup-doc-trunk.tar.gz',)
    1011
    1112def target2version(target):
    12     return target.split('-')[1].split('.')[0]
     13    return target.split('-')[2].split('.')[0]
    1314
    1415def version2input(version):
     
    3334cd .release && zip -r %s.zip %s
    3435mv .release/%s.zip . && rm -rf .release
     36'''
     37
     38doc_cmds='''
     39rm -rf .release;
     40svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/ .release;
     41cd .release && doxygen Doxyfile.regfi
     42mv .release/doc .release/%s
     43cd .release && tar cf %s.tar %s && gzip -9 %s.tar;
     44mv .release/%s.tar.gz . && rm -rf .release
    3545'''
    3646
     
    8696                                     t_base,t_base,t_base,t_base,t_base)
    8797
     98        elif t in doc_targets:
     99            ret_val += doc_cmds % (t_base,t_base,t_base,t_base,t_base)
     100
    88101        else:
    89             return '#ERROR: cannot build "%s".  Acceptable targets: %s' % (t, repr(buildable_files))
     102            return '#ERROR: cannot build "%s".  Acceptable targets: %s'\
     103                   % (t, repr(source_targets+win32_targets+doc_targets))
    90104       
    91105    return ret_val
Note: See TracChangeset for help on using the changeset viewer.