build script needs bash
[bpt/mlt.git] / build
diff --git a/build b/build
index 803d915..db4d64f 100755 (executable)
--- a/build
+++ b/build
@@ -1,10 +1,21 @@
-#!/bin/sh
+#!/bin/bash
 
 source settings
 
 echo $SMLBIN/sml @SMLload=$BIN/mlt.$PLATFORM >src/mlt
 chmod +x src/mlt
 
+echo structure Settings = struct >settings.sml
+echo "    val arch = \"$PLATFORM\"" >>settings.sml
+echo "    val defaultFile = \"$DEFAULT\"" >>settings.sml
+echo "    val smlbin = \"$SMLBIN\"" >>settings.sml
+echo "    val mltdir = \"$MLTDIR\"" >>settings.sml
+echo end >>settings.sml
+
+echo "compiler $MLTDIR/src/sources.cm" >mlt.conf
+echo "lib $MLTDIR/src/lib/sources.cm" >>mlt.conf
+cat mlt.conf.base >>mlt.conf
+
 cd src
 
 if [ -f mlt.$PLATFORM ] ; then