source: zzuf/trunk/build-win32 @ 4253

Last change on this file since 4253 was 4253, checked in by sam, 5 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
Line 
1#! /bin/sh
2
3##  Win32 cross-compilation for zzuf -- Sam Hocevar <sam@hocevar.net>
4
5set -x
6set -e
7
8# Clean up our working directory
9SRCDIR="`pwd`"
10DIRNAME="zzuf-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`"
11INSTALLDIR="`pwd`/${DIRNAME}"
12BUILDDIR="${INSTALLDIR}/build"
13rm -Rf "${INSTALLDIR}"
14rm -f "${INSTALLDIR}.zip"
15mkdir "${INSTALLDIR}"
16mkdir "${BUILDDIR}"
17
18cd "${BUILDDIR}"
19# Build for win32
20"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/
21
22make pkglibdir=/ pkgdatadir=/data bindir=/
23
24make install DESTDIR="${INSTALLDIR}" pkglibdir=/ pkgdatadir=/ bindir=/
25rm -Rf "${BUILDDIR}"
26
27# Pack the directory
28cd "${SRCDIR}"
29zip "${DIRNAME}.zip" `find "${DIRNAME}"`
30rm -Rf "${INSTALLDIR}"
31
Note: See TracBrowser for help on using the repository browser.