Skip to content

Commit

Permalink
Update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
23Skidoo committed Oct 26, 2012
1 parent a2e8637 commit 8b80371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions haddock-gen-index.py
Expand Up @@ -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"

Expand All @@ -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"))
Expand All @@ -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)
2 changes: 1 addition & 1 deletion recache.py
Expand Up @@ -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")]

Expand Down

0 comments on commit 8b80371

Please sign in to comment.