Change BUILDING to only discuss 110.49+
[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 if [ -d .cm ] ; then
17 rm -rf .cm
18 fi
19 if [ -d lib/.cm ] ; then
20 rm -rf lib/.cm
21 fi
22
23 if ! cat build.sml | $SMLBIN/sml ; then
24 exit 1
25 fi
26
27 if ! $SMLBIN/ml-build sources.cm Main.main mlt ; then
28 exit 1
29 fi
30
31 cd lib
32
33 if ! cat build.sml | $SMLBIN/sml ; then
34 exit 1
35 fi