Configuration
=============
-Modify the parameters in settings.sml as appropriate for your system.
+Modify the parameters in settings and src/settings.sml as appropriate
+for your system.
If it is possible for you to modify a file /etc/mlt.conf, then you
can edit this file to set various options related to locations of
#!/bin/sh
-SMLBIN=/usr/local/sml/bin
-PLATFORM=x86-linux
+source settings
+
+echo $SMLBIN/sml @SMLload=$BIN/mlt.$PLATFORM >src/mlt
cd src
if ! cat build.sml | $SMLBIN/sml ; then
exit 1
-fi
\ No newline at end of file
+fi
+
-BIN=/usr/local/bin
-PLATFORM=x86-linux
+source settings
cp src/mlt $BIN/
cp src/mlt.$PLATFORM $BIN/
\ No newline at end of file
--- /dev/null
+BIN=/usr/local/bin
+SMLBIN=/usr/local/sml/bin
+PLATFORM=x86-linux
\ No newline at end of file
struct
val arch = "x86-linux"
val defaultFile = "/etc/mlt.conf"
+ val smlbin = "/usr/local/sml/bin"
+ val mltdir = "/usr/local/share/mlt"
end
\ No newline at end of file
*.x86-linux
*.grm.*
*.lex.*
+mlt
\ No newline at end of file
let
val cwd = OS.FileSys.getDir ()
- val base = CONFIG {lib = "/usr/local/share/mlt/src/lib/sources.cm",
- compiler = "/usr/local/share/mlt/src/sources.cm",
- sml = "/usr/local/sml/bin",
+ val base = CONFIG {lib = mltdir ^ "/src/lib/sources.cm",
+ compiler = mltdir ^ "/src/sources.cm",
+ sml = smlbin,
inPath = cwd,
outPath = cwd,
pubPath = cwd,
$smlnj/compiler/current.cm
- settings.sml
+ ../settings.sml
string_map.sml
common.sml