standardml / smackage

Smackage Package Manager for Standard ML
Other
122 stars 12 forks source link

Test and use different cygwin file for smackage on "win" platform #7

Closed robsimmons closed 13 years ago

robsimmons commented 13 years ago

Karl asked me to use the following .mkexec on Windows machines, though it may or may not work with "Cygwinned sml".

#! /bin/sh
#
# Batch File Creator
#
# Arguments:
# $1 = SMLNJ runtime
# $2 = Parent directory of bin (which contains binaries and heap image)
# $3 = Name of executable (e.g. celf)
v=`cygpath -w $2` 
cat > "$2/bin/$3" <<EOF
#! /bin/sh
exec "$1" @SMLload="$v/bin/.heapimg" "\$@" 
EOF
chmod a+x "$2/bin/$3"
robsimmons commented 13 years ago

Seems to work?