| Revision 4253,
728 bytes
checked in by sam, 3 years ago
(diff) |
|
Fix copyright information and remove Id tag everywhere.
|
-
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@hocevar.net> |
|---|
| 4 | |
|---|
| 5 | set -x |
|---|
| 6 | set -e |
|---|
| 7 | |
|---|
| 8 | # Clean up our working directory |
|---|
| 9 | SRCDIR="`pwd`" |
|---|
| 10 | DIRNAME="zzuf-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|---|
| 11 | INSTALLDIR="`pwd`/${DIRNAME}" |
|---|
| 12 | BUILDDIR="${INSTALLDIR}/build" |
|---|
| 13 | rm -Rf "${INSTALLDIR}" |
|---|
| 14 | rm -f "${INSTALLDIR}.zip" |
|---|
| 15 | mkdir "${INSTALLDIR}" |
|---|
| 16 | mkdir "${BUILDDIR}" |
|---|
| 17 | |
|---|
| 18 | cd "${BUILDDIR}" |
|---|
| 19 | # Build for win32 |
|---|
| 20 | "${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ |
|---|
| 21 | |
|---|
| 22 | make pkglibdir=/ pkgdatadir=/data bindir=/ |
|---|
| 23 | |
|---|
| 24 | make install DESTDIR="${INSTALLDIR}" pkglibdir=/ pkgdatadir=/ bindir=/ |
|---|
| 25 | rm -Rf "${BUILDDIR}" |
|---|
| 26 | |
|---|
| 27 | # Pack the directory |
|---|
| 28 | cd "${SRCDIR}" |
|---|
| 29 | zip "${DIRNAME}.zip" `find "${DIRNAME}"` |
|---|
| 30 | rm -Rf "${INSTALLDIR}" |
|---|
| 31 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.