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: except:
sys.stderr.write("Error while copying documentation\n") sys.stderr.write("Error while copying documentation\n")
raise raise
try: if args.master_dir:
#copy documentation from master try:
if args.do_copy_results: #copy documentation from master
tgt=os.path.join(log_target, 'master') if args.do_copy_results:
shutil.copytree(args.master_dir, tgt, symlinks=True) tgt=os.path.join(log_target, 'master')
except: shutil.copytree(args.master_dir, tgt, symlinks=True)
sys.stderr.write("Error while copying master documentation\n") except:
raise sys.stderr.write("Error while copying master documentation\n")
raise
except: except:
sys.stderr.write("Error while writing to "+log_target+". Does it already exists?\n") sys.stderr.write("Error while writing to "+log_target+". Does it already exists?\n")