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 1725, Tue Dec 14 23:23:41 2004 UTC
# Line 1  Line 1 
1  #!@SHELL@  #!@SHELL@
2    
3  BIN_DIR=@BINDIR@  if [ x${SMLNJ_HOME} = x ] ; then
4        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 @CMDIRARC@/*/$smlfile' 0 1 2 3 15
27    
28  usage() {  usage() {
29      echo ${thisscript}: $*      echo ${thisscript}: $*
# Line 34  Line 43 
43      esac      esac
44  done  done
45    
46  if [ $# != 3 ] ; then  if [ $# = 3 ] ; then
47      usage wrong number of arguments      setup=
 fi  
   
48  root=$1  root=$1
49  main=$2  main=$2
50  heap=$3  heap=$3
51    elif [ $# = 4 ] ; then
52        setup=$1
53        root=$2
54        main=$3
55        heap=$4
56    else
57        usage wrong number of arguments
58    fi
59    
60  rare=XYZ_XXX_0123  rare=XYZ_XXX_0123
61    
# Line 53  Line 68 
68  EOF  EOF
69    
70  # Invoke sml with special option that causes CM to do its magic.  # Invoke sml with special option that causes CM to do its magic.
71  # (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
72  # going on.)  # for the link script into $linkargsfile.
73  $SML $dulist @CMbuild $root $cmfile $heap $listfile $LINK  # (See src/cm/main/cm-boot.sml [function "mlbuild"] for details.)
74    if "$SML" $dulist @CMbuild $setup "$root" "$cmfile" "$heap" "$listfile" "$linkargsfile"
75    then
76        if [ -r "$linkargsfile" ]; then
77            "$LINK" `cat "$linkargsfile"`
78        fi
79    else
80  exit $?  exit $?
81    fi

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

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