Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/config/_ml-build
ViewVC logotype

Diff of /sml/trunk/config/_ml-build

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1126, Thu Mar 7 21:16:28 2002 UTC revision 1480, Fri Apr 23 15:37:52 2004 UTC
# Line 1  Line 1 
1  #!@SHELL@  #!@SHELL@
2    
3    if [ x${SMLNJ_HOME} = x ] ; then
4  BIN_DIR=@BINDIR@  BIN_DIR=@BINDIR@
5    else
6        if [ x${CM_PATHCONFIG} = x ] ; then
7            CM_PATHCONFIG=${SMLNJ_HOME}/lib/pathconfig
8            export CM_PATHCONFIG
9        fi
10        BIN_DIR=${SMLNJ_HOME}/bin
11    fi
12    
13  SML=$BIN_DIR/sml  SML=$BIN_DIR/sml
14  LINK=$BIN_DIR/.link-sml  LINK=$BIN_DIR/.link-sml
# Line 11  Line 19 
19  smlfile=$xx-export.sml  smlfile=$xx-export.sml
20  cmfile=$xx-export.cm  cmfile=$xx-export.cm
21  listfile=$xx-BOOTLIST  listfile=$xx-BOOTLIST
22    linkargsfile=$xx-LINKARGS
23    
24  dulist=''  dulist=''
25    
26  trap 'rm -rf `find . -name $smlfile` $cmfile $listfile' 0 1 2 3 15  trap 'rm -rf $smlfile $cmfile $listfile $linkargsfile' 0 1 2 3 15
27    
28  usage() {  usage() {
29      echo ${thisscript}: $*      echo ${thisscript}: $*
# Line 53  Line 62 
62  EOF  EOF
63    
64  # Invoke sml with special option that causes CM to do its magic.  # Invoke sml with special option that causes CM to do its magic.
65  # (See src/cm/main/cm-boot.sml [function "mlbuild"] to see what's  # Unless the heap image exists and is up-to-date CM will write the arguments
66  # going on.)  # for the link script into $linkargsfile.
67  $SML $dulist @CMbuild $root $cmfile $heap $listfile $LINK  # (See src/cm/main/cm-boot.sml [function "mlbuild"] for details.)
68    if $SML $dulist @CMbuild $root $cmfile $heap $listfile $linkargsfile ; then
69        if [ -r $linkargsfile ]; then
70            $LINK `cat $linkargsfile`
71        fi
72    else
73  exit $?  exit $?
74    fi

Legend:
Removed from v.1126  
changed lines
  Added in v.1480

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0