Skip to content
Newer
Older
100644 18 lines (13 sloc) 541 Bytes
f82e399 @23Skidoo Helper script to do 'ghc-pkg recache'.
authored Mar 30, 2010
1 #! /usr/bin/env python
2
3 import os
4 import os.path
5 import fileinput
6
9b30fa9 @23Skidoo Add comment.
authored Dec 11, 2011
7 # Change this to the appropriate version.
8b80371 @23Skidoo Update scripts.
authored Oct 26, 2012
8 DIR = "C:\\ghc\\ghc-7.4.2\\lib\\package.conf.d"
9b30fa9 @23Skidoo Add comment.
authored Dec 11, 2011
9
f82e399 @23Skidoo Helper script to do 'ghc-pkg recache'.
authored Mar 30, 2010
10 FILES = [os.path.join(DIR, f) for f in os.listdir(DIR) if f.endswith("conf")]
11
12 for line in fileinput.FileInput(FILES, inplace=1):
1e5c8ba @23Skidoo Paths.
authored May 31, 2012
13 print line.replace("C:\\\\Program Files (x86)\\\\Haskell",
1e946cd @23Skidoo Update the recache.py script.
authored Dec 9, 2011
14 "$topdir\\\\extralibs").replace(
1e5c8ba @23Skidoo Paths.
authored May 31, 2012
15 "C:\\\\Documents and Settings\\\\hatemachine\\\\Application Data" \
1e946cd @23Skidoo Update the recache.py script.
authored Dec 9, 2011
16 "\\\\cabal",
17 "$topdir\\\\extralibs"),
Something went wrong with that request. Please try again.