Annotation of OpenXM/src/ox_math/mathlink/configure-cygwin, Revision 1.1
1.1 ! ohara 1: #!/bin/sh
! 2: # $OpenXM$
! 3:
! 4: ARCHIVE=Windows-ml_v3r8.zip
! 5: URL=http://support.wolfram.com/mathematica/mathlink/updates/v3r8/$ARCHIVE
! 6:
! 7: _fetch () {
! 8: if [ ! -f $ARCHIVE ] ; then
! 9: wget -nd $URL
! 10: fi
! 11: }
! 12:
! 13: _unzip () {
! 14: if [ -f $ARCHIVE ] ; then
! 15: unzip $ARCHIVE
! 16: if [ -e mldev32 ] ; then
! 17: rm -rf mldev32
! 18: fi
! 19: mv Windows/CompilerAdditions/mldev32 .
! 20: mv Windows/SystemAdditions/* mldev32/lib/
! 21: rm -rf Windows
! 22: fi
! 23: }
! 24:
! 25: _dlltool () {
! 26: for i in ml32i1 ml32i2; do
! 27: (echo EXPORTS ; nm "$i"m.lib | grep 'T _' | sed 's/.* T _//' ) > $i.def
! 28: dlltool --dllname $i.dll --def $i.def --output-lib lib$i.a -k
! 29: rm -f $i.def
! 30: done
! 31: # rm -rf *.lib
! 32: }
! 33:
! 34: if [ ! -f ./.configure_done ]; then
! 35: _fetch
! 36: _unzip
! 37: (cd mldev32/lib ; _dlltool)
! 38: fi
! 39: touch .configure_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>