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

Gustavo J. A. M. Carneiro 2007-05-24 19:21:50 +01:00
parent 923f4aeb8f
commit acbfbc29b3
1 changed files with 4 additions and 0 deletions

View File

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