simplified eexec crypt functions
[mplib] / build.cross
1 #!/bin/sh
2
3 # cross-compile on linux using mingw32 for windows
4
5 MAKE=make
6 STRIP=strip
7 PATH=/usr/mingw32/mingw32/bin:$PATH
8
9 rm -rf build-win
10 mkdir build-win
11 mkdir build-win/texk
12 cd build-win/texk
13
14 ../../src/texk/configure --host=i386-linux --enable-shared=no || exit 1 
15 # make the kpathsea library
16 (cd kpathsea && $MAKE ../kpathsea/libkpathsea.la ) || exit 1
17
18 # make the library
19 mkdir web2c/mpdir
20 cd web2c/mpdir
21 (../../../../src/texk/web2c/mpdir/configure \
22     --host=i386-linux --enable-shared=no ; $MAKE )|| exit 1 
23
24 # strip them
25 $STRIP mpost.exe
26 cd ../../../..
27 # show the results
28 ls -l build-win/texk/web2c/mpdir/mpost.exe
29
30