blob: b9b6380f0fcb1c60ee3593f25ab9750f77c917f8 (
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=GreenCard
# foo$ cd gc-<version>
# foo$ ../distrib/prep-bin-dist-mingw-greencard <ghc-dir>
#
echo "In prep-bin-dist-mingw-greencard $1"
binary_dir=../$1
# Play safe
if ! [ -d bin/i386-unknown-mingw32 ] ; then
echo "Doesn't look as if I'm in the toplevel directory of a mingw tree"
echo "Usage: cd ghc-<version> ; ../distrib/prep-bin-dist-mingw-greencard <ghc-bin-dist-dir>"
exit 1;
fi;
echo "rejig bin/"
cp lib/i386-unknown-mingw32/greencard-bin.exe $binary_dir/bin/greencard.exe
strip $binary_dir/bin/greencard.exe
echo "rejig lib/"
cp -r lib/i386-unknown-mingw32/* $binary_dir
exit 0
|