aboutsummaryrefslogtreecommitdiff
path: root/build-windows-dist.sh
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-12-20 10:43:04 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-12-20 10:43:04 +0000
commitbd46e046ca63125de7f9926b37e03a8e6ddba227 (patch)
tree877ab8737bd25fc91adc039c167fd2a7067f35ca /build-windows-dist.sh
parent6b993ddc068543347ae3fc387d82ad07fa520f0f (diff)
add build scripts
Diffstat (limited to 'build-windows-dist.sh')
-rw-r--r--build-windows-dist.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-windows-dist.sh b/build-windows-dist.sh
new file mode 100644
index 00000000..2ae7dd2a
--- /dev/null
+++ b/build-windows-dist.sh
@@ -0,0 +1,18 @@
+# mini script for building the relocatable Windows binary distribution.
+#
+# sh build-windows-dist.sh
+#
+# NB. the Cabal that shipped with GHC 6.6 isn't enough for this, because it
+# is missing this patch:
+#
+# Fri Oct 13 11:09:41 BST 2006 Simon Marlow <simonmar@microsoft.com>
+# * Fix getDataDir etc. when bindir=$prefix
+#
+# So you need to use a more recent Cabal. GHC 6.6 is fine for building the
+# package, though.
+
+ghc --make Setup
+./Setup configure --prefix=`pwd`/install --bindir='$prefix' --libdir='$prefix' --datadir='$prefix'
+./Setup build
+./Setup install
+echo Now zip up `pwd`/install as "haddock-<version>-Win32.zip"