| Revision 2522,
733 bytes
checked in by sam, 5 years ago
(diff) |
- Fix the Win32 package build. No, it still doesn't work, it just builds.
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | #! /bin/sh |
|---|
| 2 | |
|---|
| 3 | ## Win32 cross-compilation for zzuf -- Sam Hocevar <sam@zoy.org> |
|---|
| 4 | ## $Id$ |
|---|
| 5 | |
|---|
| 6 | set -x |
|---|
| 7 | set -e |
|---|
| 8 | |
|---|
| 9 | # Clean up our working directory |
|---|
| 10 | SRCDIR="`pwd`" |
|---|
| 11 | DIRNAME="zzuf-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|---|
| 12 | INSTALLDIR="`pwd`/${DIRNAME}" |
|---|
| 13 | BUILDDIR="${INSTALLDIR}/build" |
|---|
| 14 | rm -Rf "${INSTALLDIR}" |
|---|
| 15 | rm -f "${INSTALLDIR}.zip" |
|---|
| 16 | mkdir "${INSTALLDIR}" |
|---|
| 17 | mkdir "${BUILDDIR}" |
|---|
| 18 | |
|---|
| 19 | cd "${BUILDDIR}" |
|---|
| 20 | # Build for win32 |
|---|
| 21 | "${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ |
|---|
| 22 | |
|---|
| 23 | make pkglibdir=/ pkgdatadir=/data bindir=/ |
|---|
| 24 | |
|---|
| 25 | make install DESTDIR="${INSTALLDIR}" pkglibdir=/ pkgdatadir=/ bindir=/ |
|---|
| 26 | rm -Rf "${BUILDDIR}" |
|---|
| 27 | |
|---|
| 28 | # Pack the directory |
|---|
| 29 | cd "${SRCDIR}" |
|---|
| 30 | zip "${DIRNAME}.zip" `find "${DIRNAME}"` |
|---|
| 31 | rm -Rf "${INSTALLDIR}" |
|---|
| 32 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.