Fixing installation process
[bpt/mlt.git] / build
1 #!/bin/sh
2
3 source settings
4
5 echo $SMLBIN/sml @SMLload=$BIN/mlt.$PLATFORM >src/mlt
6 chmod +x src/mlt
7
8 cd src
9
10 if [ -f mlt.$PLATFORM ] ; then
11 rm mlt.$PLATFORM
12 fi
13 if [ -d CM ] ; then
14 rm -rf CM
15 fi
16 if [ -d lib/CM ] ; then
17 rm -rf lib/CM
18 fi
19 if [ -d .cm ] ; then
20 rm -rf .cm
21 fi
22 if [ -d lib/.cm ] ; then
23 rm -rf lib/.cm
24 fi
25
26 if ! cat build.sml | $SMLBIN/sml ; then
27 exit 1
28 fi
29
30 if ! $SMLBIN/ml-build sources.cm Main.main mlt ; then
31 exit 1
32 fi
33
34 cd lib
35
36 if ! cat build.sml | $SMLBIN/sml ; then
37 exit 1
38 fi
39