From acbfbc29b3364719c8d7b6e8f287a007924aa98f Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 24 May 2007 19:21:50 +0100 Subject: [PATCH] WAF: add a dist_hook function to exclude the generated documentation from waf dist --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 046a40bf5..7e12cd170 100644 --- a/wscript +++ b/wscript @@ -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