Various improvements made while working on relwiki
[bpt/mlt.git] / build
1 #!/bin/sh
2
3 SMLBIN=/usr/local/sml/bin
4
5 cd src
6
7 if [ -f mlt.x86-linux ] ; then
8 rm mlt.x86-linux
9 fi
10 if [ -d CM ] ; then
11 rm -rf CM
12 fi
13 if [ -d lib/CM ] ; then
14 rm -rf lib/CM
15 fi
16
17 if ! cat build.sml | $SMLBIN/sml ; then
18 exit 1
19 fi
20
21 if ! $SMLBIN/ml-build sources.cm Main.main mlt ; then
22 exit 1
23 fi
24
25 cd lib
26
27 if ! cat build.sml | $SMLBIN/sml ; then
28 exit 1
29 fi