Create regression traces tarball automatically on waf dist.
1.1 --- a/wscript Sun Apr 06 21:41:31 2008 +0100
1.2 +++ b/wscript Sun Apr 06 21:57:11 2008 +0100
1.3 @@ -49,9 +49,22 @@
1.4
1.5
1.6 def dist_hook():
1.7 + import tarfile
1.8 shutil.rmtree("doc/html", True)
1.9 shutil.rmtree("doc/latex", True)
1.10
1.11 + ## Create a tar.bz2 file with the traces
1.12 + traces_dir = os.path.join("regression", "ns-3-dev-ref-traces")
1.13 + if not os.path.isdir(traces_dir):
1.14 + Params.warning("Not creating traces archive: the %s directory does not exist" % traces_dir)
1.15 + else:
1.16 + tar = tarfile.open(os.path.join("..", "ns-%s-ref-traces.tar.bz2" % VERSION), 'w:bz2')
1.17 + tar.add(traces_dir, "ns-3-dev-ref-traces")
1.18 + tar.close()
1.19 + ## Now remove it; we do not ship the traces with the main tarball...
1.20 + shutil.rmtree(traces_dir, True)
1.21 +
1.22 +
1.23 def set_options(opt):
1.24
1.25 def debug_option_callback(option, opt, value, parser):