1 $NetBSD: patch-ai,v 1.6 2007/03/24 17:57:20 kristerw Exp $
3 --- ../ghc-6.4.2/distrib/prep-bin-dist-mingw.orig 2006-03-19 04:26:18.000000000 +0100
4 +++ ../ghc-6.4.2/distrib/prep-bin-dist-mingw 2006-10-14 04:43:55.000000000 +0200
6 # - gcc_version -- what gcc version your mingw tree uses.
9 -if [ "x${old_ghc_top}" == "x" ]; then
10 +if [ "x${old_ghc_top}" = "x" ]; then
11 export old_ghc_top=c:/ghc/ghc-6.2.1
13 -if [ "x${mingw_top}" == "x" ]; then
14 +if [ "x${mingw_top}" = "x" ]; then
15 export mingw_top=c:/mingw3
18 # The gcc-lib directory of the mingw tree you want to
19 # include with the binary dist.
20 -if [ "x${gcc_lib}" == "x" ]; then
21 - if [ "x${gcc_version}" == "x" ]; then
22 +if [ "x${gcc_lib}" = "x" ]; then
23 + if [ "x${gcc_version}" = "x" ]; then
24 # The default (with mingw3)
25 export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/3.2.3
27 export gcc_lib=$mingw_top/lib/gcc-lib/mingw32/${gcc_version}
30 -if [ "x${gcc_libexec}" == "x" ]; then
31 - if [ "x${gcc_version}" == "x" ]; then
32 +if [ "x${gcc_libexec}" = "x" ]; then
33 + if [ "x${gcc_version}" = "x" ]; then
34 # The default (with mingw3)
35 export gcc_libexec=$mingw_top/lib/gcc-lib/mingw32/3.2.3
37 @@ -61,7 +61,7 @@ if [ "x${gcc_libexec}" == "x" ]; then
40 #Directory where a (cygwin-free) perl binary resides.
41 -if [ "x${perl_dir}" == "x" ]; then
42 +if [ "x${perl_dir}" = "x" ]; then
43 export perl_dir=$old_ghc_top
46 @@ -69,13 +69,13 @@ fi
47 # The mingw include, lib, and bin directories; all derived
50 -if [ "x${mingw_include}" == "x" ]; then
51 +if [ "x${mingw_include}" = "x" ]; then
52 export mingw_include=$mingw_top/include
54 -if [ "x${mingw_lib}" == "x" ]; then
55 +if [ "x${mingw_lib}" = "x" ]; then
56 export mingw_lib=$mingw_top/lib
58 -if [ "x${mingw_bin}" == "x" ]; then
59 +if [ "x${mingw_bin}" = "x" ]; then
60 export mingw_bin=$mingw_top/bin