* Quick and dirty .zip generator for the Win32 version.

git-svn-id: svn://svn.zoy.org/elk/trunk@149 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-13 00:35:20 +00:00
parent b12222213e
commit 1b2f8598a4
2 changed files with 24 additions and 0 deletions

View File

@ -5,6 +5,7 @@ DIST_SUBDIRS = $(SUBDIRS) autotools debian
EXTRA_DIST = \ EXTRA_DIST = \
bootstrap \ bootstrap \
build-win32 \
BUGS \ BUGS \
ChangeLog \ ChangeLog \
MACHINES \ MACHINES \

23
build-win32 Executable file
View File

@ -0,0 +1,23 @@
#! /bin/sh
## Win32 cross-compilation for Elk -- Sam Hocevar <sam@zoy.org>
## $Id$
set -x
set -e
# To build for win32, I use ./configure --host=i586-mingw32msvc
DIRNAME="elk-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
DESTDIR="`pwd`/${DIRNAME}"
rm -Rf "${DIRNAME}"
rm -f "${DIRNAME}.zip"
mkdir "${DIRNAME}"
(cd src && make && cp elk.exe "${DESTDIR}")
(cd scm && make install DESTDIR="${DESTDIR}" datadir="/")
mv "${DESTDIR}/elk" "${DESTDIR}/scm"
zip "${DIRNAME}.zip" `find "${DIRNAME}"`
rm -Rf "${DIRNAME}"