SMLNJ on windows..

"Daniel Wang" <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
So I spent my first year at MS giving up on unix tools. Emacs was  my
only cruch. I figure I had to eat the dogfood for a full year before I
could curse the horrible command line tools. In the process, I
discoverd the command interperter (cmd.exe) on Windows has many useful
extensions that make life tollerable

The most important one is the %~dp0 voodo
it's roughly the same as  `dirname %0` what this means is that you
don't have to set SMLJ_HOME just put the cmd. scripts path and things
will work.

---sml.cmd---
@echo off
setlocal
if "%SMLNJ_HOME%" == "" set SMLNJ_HOME=%~dp0..
set CM_PATHCONFIG=%SMLNJ_HOME%\lib\pathconfig
"%SMLNJ_HOME%\bin\.run\run.x86-win32.exe"
"@SMLload=%SMLNJ_HOME%\bin\.heap\sml" %*
---snip---
This .cmd script should run on all systems that have a cmd.exe.
Windows 95-98 don't come with cmd.exe so they don't work.

I would love to check these changes in, but unfortunately I can
checkout the svn repository, because the admin scripts require "sh".
I'm tempted to rewrite them to .cmd for the windows users out there.

I'd like to see if I can get update the instructions on how to build
SMLNJ from sources on a windows vista box. I'll be using the compiler
tool chain that's part of the vista SDK that can be downloaded by
anyone from...

http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en

In general though do you guys want to keep supporting 95-98? If so my
.cmd trickery is not useful, but if you don't care.. I'll try to get
things working and a clean source build on a stock vista box.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.