source: zzuf/trunk/build-win32 @ 4838

Last change on this file since 4838 was 4253, checked in by Sam Hocevar, 12 years ago

Fix copyright information and remove Id tag everywhere.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 728 bytes
RevLine 
[1701]1#! /bin/sh
2
[4253]3##  Win32 cross-compilation for zzuf -- Sam Hocevar <sam@hocevar.net>
[1701]4
5set -x
6set -e
7
8# Clean up our working directory
9SRCDIR="`pwd`"
[2522]10DIRNAME="zzuf-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`"
[1701]11INSTALLDIR="`pwd`/${DIRNAME}"
12BUILDDIR="${INSTALLDIR}/build"
13rm -Rf "${INSTALLDIR}"
14rm -f "${INSTALLDIR}.zip"
15mkdir "${INSTALLDIR}"
16mkdir "${BUILDDIR}"
17
18cd "${BUILDDIR}"
19# Build for win32
[2522]20"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/
[1701]21
[2522]22make pkglibdir=/ pkgdatadir=/data bindir=/
[1701]23
[2522]24make install DESTDIR="${INSTALLDIR}" pkglibdir=/ pkgdatadir=/ bindir=/
[1702]25rm -Rf "${BUILDDIR}"
[1701]26
27# Pack the directory
[1702]28cd "${SRCDIR}"
[1701]29zip "${DIRNAME}.zip" `find "${DIRNAME}"`
30rm -Rf "${INSTALLDIR}"
31
Note: See TracBrowser for help on using the repository browser.