Last change
on this file since 1612 was 1184, checked in by mar637, 18 years ago |
complete rework of install target, added data install, and also building a distribution archive
|
File size:
667 bytes
|
Rev | Line | |
---|
[1184] | 1 | def make_archive(target, source, env):
|
---|
| 2 | from distutils.archive_util import make_tarball
|
---|
| 3 | make_tarball(str(target[0]), str(source[0]), compress='bzip2')
|
---|
| 4 | return 0
|
---|
| 5 |
|
---|
| 6 | def make_archive_str(target, source, env):
|
---|
| 7 | return "Creating archive %s.tar.bz2 from %s" % (target[0], source[0])
|
---|
| 8 |
|
---|
| 9 | def generate(env):
|
---|
| 10 | archiver_builder = env.Builder(
|
---|
| 11 | action = env.Action(make_archive,make_archive_str),
|
---|
| 12 | source_factory=env.fs.Entry,
|
---|
| 13 | target_factory=env.fs.Entry,
|
---|
| 14 | multi=0
|
---|
| 15 | )
|
---|
| 16 |
|
---|
| 17 | env.Append(BUILDERS = {
|
---|
| 18 | 'Archiver': archiver_builder
|
---|
| 19 | })
|
---|
| 20 |
|
---|
| 21 | env.AppendUnique(
|
---|
| 22 | ARCHIVER = 'archiver',
|
---|
| 23 | )
|
---|
| 24 |
|
---|
| 25 | def exists(env):
|
---|
| 26 | return True
|
---|
Note:
See
TracBrowser
for help on using the repository browser.