summaryrefslogtreecommitdiff
path: root/distrib/prep-bin-dist-mingw-args
blob: d9e81b0deee89038358ec82b75d22843c4d47695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# Running 'binary-dist' gives us a tree which
# isn't quite right for the purposes of creating
# a mingw/win32 install tree.  This script rejigs
# the tree.
#
# To use:
#
#   foo$ cd <top of fptools build tree>
#   foo$ make binary-dist Project=Ghc 
#   foo$ cd ghc-<version>
#   foo$ ../distrib/prep-bin-dist-mingw-args <perl-dir> <mingw-top> <mingw-gcc-lib>
#

# Directory where a (cygwin-free) perl binary resides.
export perl_dir=$1

# Top of the MinGW32 compiler directory
export mingw_top=$2

# The gcc-lib directory of the mingw tree you want to
# include with the binary dist.
export gcc_lib=$mingw_top/$3

#
# The mingw include, lib, and bin directories.
#
export mingw_include=$mingw_top/include
export mingw_lib=$mingw_top/lib
export mingw_bin=$mingw_top/bin

exec $0/../prep-bin-dist-mingw