summaryrefslogtreecommitdiff
path: root/distrib/prep-bin-dist-mingw
diff options
context:
space:
mode:
authorsof <unknown>2002-02-08 08:26:01 +0000
committersof <unknown>2002-02-08 08:26:01 +0000
commit40f9f1ab03fdbb6075417b1b68d6c5ea7cf5921f (patch)
treeee3d67dc0c38db7699ef528823615576de1c637b /distrib/prep-bin-dist-mingw
parent199b5c0766a2c7888544a970d35ba4d8fd889a07 (diff)
downloadhaskell-40f9f1ab03fdbb6075417b1b68d6c5ea7cf5921f.tar.gz
[project @ 2002-02-08 08:26:01 by sof]
naive script for preparing a binary-dist tree for the installer
Diffstat (limited to 'distrib/prep-bin-dist-mingw')
-rw-r--r--distrib/prep-bin-dist-mingw61
1 files changed, 61 insertions, 0 deletions
diff --git a/distrib/prep-bin-dist-mingw b/distrib/prep-bin-dist-mingw
new file mode 100644
index 0000000000..6f02f0be2a
--- /dev/null
+++ b/distrib/prep-bin-dist-mingw
@@ -0,0 +1,61 @@
+#!/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
+#
+export gcc_lib=c:/ghc/ghc-5.02.2/gcc-lib
+export perl_dir=c:/ghc/ghc-5.02.2
+export mingw_include=c:/ghc/ghc-5.02.2/include/mingw
+
+echo "Removing configure script files...not needed"
+rm -f config.guess config.sub configure configure.in mkdirhier
+rm -f Makefile-bin.in Makefile.in aclocal.m4 install-sh
+
+# For reasons unknown, duplicate copies of misc file in share/
+rm -rf share/
+
+echo "rejig bin/"
+mv bin/i386-unknown-mingw32/* bin/
+rmdir bin/i386-unknown-mingw32
+strip bin/ghc.exe
+
+echo "rejig lib/"
+mv lib/i386-unknown-mingw32/* .
+rmdir lib/i386-unknown-mingw32
+rmdir lib
+mv ghc-asm.prl ghc-asm
+mv ghc-split.prl ghc-split
+
+echo "copy in gcc-lib/"
+cp -Rf $gcc_lib .
+
+echo "extra header files inside of include/"
+mkdir include/mingw
+cp -Rf $mingw_include include/
+
+
+echo "copy in perl too"
+cp ${perl_dir}/perl.exe .
+cp ${perl_dir}/perl56.dll .
+cp ${perl_dir}/gcc.exe .
+
+echo "formatting documentation"
+mkdir doc
+mkdir doc/user-guide
+cp -Rf html/* doc/user-guide/
+cp pdf/set.pdf doc/
+rm -rf html/
+rm -rf pdf/
+
+
+
+