Skip to content

Commit 1851c4f

Browse files
author
Simon Marlow
committed
add script for building the Windows dist
1 parent 8665709 commit 1851c4f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build-windows-dist.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# mini script for building the relocatable Windows binary distribution.
2+
#
3+
# sh build-windows-dist.sh
4+
#
5+
# NB. the Cabal that shipped with GHC 6.6 isn't enough for this, because it
6+
# is missing this patch:
7+
#
8+
# Fri Oct 13 11:09:41 BST 2006 Simon Marlow <simonmar@microsoft.com>
9+
# * Fix getDataDir etc. when bindir=$prefix
10+
#
11+
# So you need to use a more recent Cabal. GHC 6.6 is fine for building the
12+
# package, though.
13+
14+
ghc --make Setup
15+
./Setup configure --prefix=`pwd`/install --bindir='$prefix' --libdir='$prefix' --datadir='$prefix'
16+
./Setup build
17+
./Setup install
18+
echo Now zip up `pwd`/install as "alex-<version>-Win32.zip"

0 commit comments

Comments
 (0)