version 1.3, 2003/01/12 02:35:57 |
version 1.4, 2003/11/16 17:25:20 |
|
|
#!/bin/sh |
#!/bin/sh |
# $OpenXM: OpenXM/src/ox_math/mathlink/configure-cygwin,v 1.2 2002/08/23 07:20:36 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_math/mathlink/configure-cygwin,v 1.3 2003/01/12 02:35:57 ohara Exp $ |
|
|
ARCHIVE=Windows-ml_v3r9.zip |
|
URL=http://support.wolfram.com/mathematica/mathlink/updates/v3r9/"${ARCHIVE}" |
|
BASE="/usr/local/mathematica/AddOns/MathLink/DeveloperKit" |
BASE="/usr/local/mathematica/AddOns/MathLink/DeveloperKit" |
OpenXM_HOME=${OpenXM_HOME:-../../../../OpenXM} |
OpenXM_HOME=${OpenXM_HOME:-../../../../OpenXM} |
|
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
|
DISTFILE=Windows-ml_v3r9.zip |
|
URL=http://support.wolfram.com/mathematica/mathlink/updates/v3r9/"${DISTFILE}" |
|
|
_fetch () { |
_fetch () { |
if [ ! -f "${ARCHIVE}" ] ; then |
oxfetch.sh "${URL}" ${DISTDIR} |
wget --quiet --no-directories --timestamping "${URL}" |
if [ ! -f "${DISTDIR}/${DISTFILE}" ] ; then |
fi |
|
if [ ! -f "${ARCHIVE}" ] ; then |
|
echo 'MathLink libraries cannot be fetched.' |
echo 'MathLink libraries cannot be fetched.' |
exit 1 |
exit 1 |
fi |
fi |
unzip -q "${ARCHIVE}" |
unzip -q "${DISTFILE}" |
} |
} |
|
|
_xcopy () { |
_xcopy () { |
|
|
} |
} |
|
|
if [ ! -f ./.configure_done ]; then |
if [ ! -f ./.configure_done ]; then |
if [ ! -d "${BASE}" -o -f "${ARCHIVE}" ]; then |
if [ ! -d "${BASE}" -o -f "${DISTDIR}/${DISTFILE}" ]; then |
_fetch |
_fetch |
BASE=. |
BASE=. |
fi |
fi |