Allow calling `make html` when results is a symlink
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 17 Sep 2013 11:10:16 +0000 (13:10 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 17 Sep 2013 11:10:16 +0000 (13:10 +0200)
gw-tests/Makefile
gw-tests/genhtml/genhtml.py

index c0bec58..5ecb187 100644 (file)
@@ -39,7 +39,7 @@ RTEMS:
 
 .PHONY: html
 html:
-       ./genhtml/genhtml.py results
+       ./genhtml/genhtml.py results $(CURDIR)
 
 KERNELS=2.6.33.7-00007-g9c0ff90 2.6.33.7-rt29-00004-g92487e4 2.6.36.2-00015-g4f1bc4e 3.0.4-00007-g1c8c373 3.0.4-rt14-00008-gb2052fd
 
index 811b735..82a1230 100755 (executable)
@@ -335,7 +335,7 @@ h4 { margin: 0; }
             print test.path
             test.generateHtml()
 
-       os.system("source-highlight -d --output-dir=. ../*.sh > /dev/null")
+       os.system("source-highlight -d --output-dir=. %s/*.sh > /dev/null" % sh_dir)
 
 class Page(object):
     def __init__(self, dimPair, valsOther, tests):
@@ -408,6 +408,7 @@ class Page(object):
 
 if __name__ == "__main__":
     os.chdir(sys.argv[1])
+    sh_dir = sys.argv[2]
     os.system("rm *.html")
     tests = Tests("./", Space(DimensionHostKern(), DimensionKern(), DimensionTraffic(), DimensionLoad(), DimensionTest()))
     tests.generateHtml()