Create regression traces tarball automatically on waf dist.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-04-06 21:57:11 +01:00
parent 8501ca807c
commit c3f0505ddc

13
wscript
View File

@@ -49,9 +49,22 @@ REGRESSION_TRACES_DIR_NAME = "ns-3-dev-ref-traces"
def dist_hook():
import tarfile
shutil.rmtree("doc/html", True)
shutil.rmtree("doc/latex", True)
## Create a tar.bz2 file with the traces
traces_dir = os.path.join("regression", "ns-3-dev-ref-traces")
if not os.path.isdir(traces_dir):
Params.warning("Not creating traces archive: the %s directory does not exist" % traces_dir)
else:
tar = tarfile.open(os.path.join("..", "ns-%s-ref-traces.tar.bz2" % VERSION), 'w:bz2')
tar.add(traces_dir, "ns-3-dev-ref-traces")
tar.close()
## Now remove it; we do not ship the traces with the main tarball...
shutil.rmtree(traces_dir, True)
def set_options(opt):
def debug_option_callback(option, opt, value, parser):