From 630a2eb68af0d523a1bb4451bbaa75d2ba47d252 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 19 Jul 2010 14:26:20 +1000 Subject: 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. --- buildtools/wafsamba/samba_pidl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py index b932f59d77..521222dc5c 100644 --- a/buildtools/wafsamba/samba_pidl.py +++ b/buildtools/wafsamba/samba_pidl.py @@ -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): -- cgit