mirror of https://github.com/CGAL/cgal
If suffix balise is not existent, add it event if not creating a skeleton.
This commit is contained in:
parent
56a378c739
commit
f8d228a090
|
|
@ -195,7 +195,6 @@ body {color: black; background-color: #C0C0D0; font-family: sans-serif;}
|
||||||
signature='<p id="suffix"> Generated with the command line</p><code> python {script_args}</p><p> by {user_name}@{host_name} at {date_time} </code></html>'.format(
|
signature='<p id="suffix"> Generated with the command line</p><code> python {script_args}</p><p> by {user_name}@{host_name} at {date_time} </code></html>'.format(
|
||||||
user_name=getpass.getuser(), host_name=socket.gethostname(), date_time=time.ctime(), script_args=args_list)
|
user_name=getpass.getuser(), host_name=socket.gethostname(), date_time=time.ctime(), script_args=args_list)
|
||||||
f.write(signature)
|
f.write(signature)
|
||||||
print(signature)
|
|
||||||
with open(diff_file, 'r') as myfile:
|
with open(diff_file, 'r') as myfile:
|
||||||
diff=myfile.read()
|
diff=myfile.read()
|
||||||
if not diff:
|
if not diff:
|
||||||
|
|
@ -217,6 +216,14 @@ body {color: black; background-color: #C0C0D0; font-family: sans-serif;}
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("Warning: the directory " + publish_dir + dir_to_remove + " does not exist or is not writable!\n")
|
sys.stderr.write("Warning: the directory " + publish_dir + dir_to_remove + " does not exist or is not writable!\n")
|
||||||
revs.eq(k).remove()
|
revs.eq(k).remove()
|
||||||
|
script_info=d('#suffix')
|
||||||
|
if script_info.text()=='':
|
||||||
|
args_list=''
|
||||||
|
for arg in sys.argv[0:]:
|
||||||
|
args_list+=arg+' '
|
||||||
|
signature='<html><p id="suffix"> Generated with the command line</p><code> python {script_args}</p><p> by {user_name}@{host_name} at {date_time} </code></html>'.format(
|
||||||
|
user_name=getpass.getuser(), host_name=socket.gethostname(), date_time=time.ctime(), script_args=args_list)
|
||||||
|
d('table').after(signature)
|
||||||
write_out_html(d, publish_dir + 'index.html')
|
write_out_html(d, publish_dir + 'index.html')
|
||||||
try:
|
try:
|
||||||
#copy log files
|
#copy log files
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue