If not args.master_dir, don't copy doxygen masters documentation

This commit is contained in:
Maxime Gimeno 2017-06-06 15:20:57 +02:00
parent 33cd8fda21
commit 82d26e2ab3
1 changed files with 9 additions and 8 deletions

View File

@ -223,14 +223,15 @@ body {color: black; background-color: #C0C0D0; font-family: sans-serif;}
except:
sys.stderr.write("Error while copying documentation\n")
raise
try:
#copy documentation from master
if args.do_copy_results:
tgt=os.path.join(log_target, 'master')
shutil.copytree(args.master_dir, tgt, symlinks=True)
except:
sys.stderr.write("Error while copying master documentation\n")
raise
if args.master_dir:
try:
#copy documentation from master
if args.do_copy_results:
tgt=os.path.join(log_target, 'master')
shutil.copytree(args.master_dir, tgt, symlinks=True)
except:
sys.stderr.write("Error while copying master documentation\n")
raise
except:
sys.stderr.write("Error while writing to "+log_target+". Does it already exists?\n")