WAF: add a dist_hook function to exclude the generated documentation from waf dist

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-05-24 19:21:50 +01:00
parent 923f4aeb8f
commit acbfbc29b3

View File

@@ -2,6 +2,7 @@
import os
import sys
import shlex
import shutil
import Params
import Object
@@ -17,6 +18,9 @@ APPNAME = 'ns'
srcdir = '.'
blddir = 'build'
def dist_hook(srcdir, blddir):
shutil.rmtree("doc/html")
shutil.rmtree("doc/latex")
def set_options(opt):
# options provided by the modules