]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix script
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 19:19:28 +0000 (19:19 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 19:19:28 +0000 (19:19 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31101 0785d39b-7218-0410-832d-ea1e28bc413d

tests/scripts/makereport.py

index 8ec75906088d6e44284b1bb76ed38dd7a0e32eae..60c04cf9919a26fbd8651474c2cf79c8ce8745de 100644 (file)
@@ -35,6 +35,11 @@ while len(args)>0:
         branch=args[0].replace('/','')+'/'
     args.pop(0)
 
+if dirname=="":
+    n=glob.glob("*/Build.xml")
+    n.sort(reverse=True)
+    dirname = n[0].replace('/Build.xml','')
+
 if len(glob.glob(dirname+'/Update.xml'))>0:
     #new format
     tree = ET.parse(dirname+'/Update.xml')
@@ -49,6 +54,7 @@ else:
     number = number[1:]
     date = datetime.strptime(dirname,"%Y%m%d-%H%M")
 
+
 header = "Revision: %s"%number + "\n"
 header += "Date: %s"%(date.strftime("%Y %j  %F  %U-%w")) + '\n'
 id = subprocess.check_output(["id","-un"])+'@'+subprocess.check_output(["hostname"])

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.