Rev | Line | |
---|
[189] | 1 | |
---|
[187] | 2 | build_cmds=''' |
---|
| 3 | rm -rf .release; |
---|
[189] | 4 | svn export svn+ssh://sentinelchicken.org/home/projects/subversion/reglookup/$SOURCE .release/%s; |
---|
[187] | 5 | #XXX: Can this be less of a hack? |
---|
[189] | 6 | cd .release/%s && scons doc |
---|
| 7 | cd .release && tar cf %s.tar %s && gzip -9 %s.tar; |
---|
| 8 | mv .release/%s.tar.gz . && rm -rf .release |
---|
[187] | 9 | ''' |
---|
| 10 | |
---|
[189] | 11 | buildable_files=('reglookup-trunk.tar.gz',) |
---|
[187] | 12 | |
---|
[189] | 13 | def generate_cmds(source, target, env, for_signature): |
---|
| 14 | ret_val = '' |
---|
| 15 | for t in target: |
---|
| 16 | if str(t) in buildable_files: |
---|
| 17 | t_base = str(t).split('.')[0] |
---|
| 18 | ret_val += build_cmds % (t_base,t_base,t_base, |
---|
| 19 | t_base,t_base,t_base) |
---|
| 20 | else: |
---|
| 21 | return '#ERROR: cannot build "%s". Acceptable targets: %s' % (t, repr(buildable_files)) |
---|
[188] | 22 | |
---|
[189] | 23 | return ret_val |
---|
[187] | 24 | |
---|
[188] | 25 | |
---|
[189] | 26 | release_builder = Builder(generator = generate_cmds, |
---|
| 27 | suffix = '.tar.gz', |
---|
| 28 | src_suffix = '', |
---|
| 29 | prefix='reglookup-') |
---|
[188] | 30 | |
---|
[189] | 31 | env = Environment() |
---|
| 32 | env['BUILDERS']['Release'] = release_builder |
---|
[188] | 33 | |
---|
[189] | 34 | |
---|
| 35 | env.Release(Dir('trunk')) |
---|
| 36 | #env.Release('reglookup-0.13.0.tar.gz', Dir('releases/0.13.0')) |
---|
| 37 | |
---|
[187] | 38 | Default(None) |
---|
Note: See
TracBrowser
for help on using the repository browser.