Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update scripts.

  • Loading branch information...
commit 8b80371032e36a21f3ade1d6d391f711274b355d 1 parent a2e8637
@23Skidoo authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 haddock-gen-index.py
  2. +1 −1  recache.py
View
6 haddock-gen-index.py
@@ -4,7 +4,7 @@
import subprocess
# Change this to the appropriate version.
-GHC_DIR = "C:\\ghc\\ghc-7.4.1"
+GHC_DIR = "C:\\ghc\\ghc-7.4.2"
LIB_DIR = GHC_DIR + "\\lib"
LIB_DOC_DIR = GHC_DIR + "\\doc\\html\\libraries"
@@ -15,7 +15,7 @@ def get_field(pkg, fld):
read_intf=""
pkgs = subprocess.check_output(["ghc-pkg", "list", "--simple-output"]).split()
for pkg in pkgs:
- html = os.path.abspath(get_field(pkg, "haddock-html"))
+ html = os.path.abspath(get_field(pkg, "haddock-html"))
html = html.replace(LIB_DIR, "..\\..\\..\\lib")
html = html.replace(LIB_DOC_DIR, ".")
intf = os.path.abspath(get_field(pkg, "haddock-interfaces"))
@@ -33,6 +33,6 @@ def get_field(pkg, fld):
if valid:
read_intf += (" --read-interface=" + html + ","+ intf)
-cmd_line = ["haddock", "--gen-index",
+cmd_line = ["haddock", "--gen-index",
"--gen-contents", "--title=Haskell Platform"] + read_intf.split()
subprocess.check_output(cmd_line)
View
2  recache.py
@@ -5,7 +5,7 @@
import fileinput
# Change this to the appropriate version.
-DIR = "C:\\ghc\\ghc-7.4.1\\lib\\package.conf.d"
+DIR = "C:\\ghc\\ghc-7.4.2\\lib\\package.conf.d"
FILES = [os.path.join(DIR, f) for f in os.listdir(DIR) if f.endswith("conf")]
Please sign in to comment.
Something went wrong with that request. Please try again.