1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

waf: make the error msg when gen_ndr directory is missing clearer

the next time someone removes gen_ndr/README the fix should be more
obvious.
This commit is contained in:
Andrew Tridgell 2010-07-19 14:26:20 +10:00
parent a709e423d2
commit 630a2eb68a

View File

@ -79,6 +79,13 @@ def SAMBA_PIDL(bld, pname, source,
# gen_ndr directory we end up generating identical output in gen_ndr for the old
# build system and the new one. That makes keeping things in sync much easier.
# eventually we should drop the gen_ndr files in git, but in the meanwhile this works
found_dir = bld.path.find_dir(output_dir)
if not 'abspath' in dir(found_dir):
Logs.error('Unable to find pidl output directory %s' %
os.path.normpath(os.path.join(bld.curdir, output_dir)))
sys.exit(1)
outdir = bld.path.find_dir(output_dir).abspath(t.env)
if symlink and not os.path.lexists(outdir):