diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-07-19 14:26:20 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-07-19 22:17:17 +1000 |
commit | 630a2eb68af0d523a1bb4451bbaa75d2ba47d252 (patch) | |
tree | 9fb61c2ed61dd1ff93a64fc4498a4ec8d3a0607d | |
parent | a709e423d2940a7c71099ff11383a5f0ef3b1d7e (diff) | |
download | samba-630a2eb68af0d523a1bb4451bbaa75d2ba47d252.tar.gz samba-630a2eb68af0d523a1bb4451bbaa75d2ba47d252.tar.bz2 samba-630a2eb68af0d523a1bb4451bbaa75d2ba47d252.zip |
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.
-rw-r--r-- | buildtools/wafsamba/samba_pidl.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |