WAF: add a dist_hook function to exclude the generated documentation from waf dist
parent
923f4aeb8f
commit
acbfbc29b3
4
wscript
4
wscript
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue