2003-09-12 20:35:20 -04:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
## Win32 cross-compilation for Elk -- Sam Hocevar <sam@zoy.org>
|
|
|
|
## $Id$
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2003-09-13 02:33:51 -04:00
|
|
|
# Clean up our working directory
|
2003-09-12 20:35:20 -04:00
|
|
|
DIRNAME="elk-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
|
|
|
|
DESTDIR="`pwd`/${DIRNAME}"
|
|
|
|
rm -Rf "${DIRNAME}"
|
|
|
|
rm -f "${DIRNAME}.zip"
|
|
|
|
mkdir "${DIRNAME}"
|
2003-09-13 02:33:51 -04:00
|
|
|
|
2003-09-19 04:54:08 -04:00
|
|
|
# To build for win32, I use:
|
|
|
|
# ./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/
|
|
|
|
# make pkglibdir=/lib pkgdatadir=/scm
|
|
|
|
make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/scm
|
|
|
|
cp "src/.libs/libelk-0.dll" "${DESTDIR}"
|
2003-09-12 20:35:20 -04:00
|
|
|
|
2003-09-13 02:33:51 -04:00
|
|
|
# Pack the directory
|
2003-09-12 20:35:20 -04:00
|
|
|
zip "${DIRNAME}.zip" `find "${DIRNAME}"`
|
|
|
|
rm -Rf "${DIRNAME}"
|
|
|
|
|