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/src/system/makeml
ViewVC logotype

Diff of /sml/trunk/src/system/makeml

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

revision 576, Fri Mar 10 07:27:16 2000 UTC revision 577, Fri Mar 10 08:07:18 2000 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3    this=$0
4  here=`pwd`  here=`pwd`
5  cd ../..  cd ../..
6  twoup=`pwd`  twoup=`pwd`
# Line 8  Line 9 
9  LINK=$twoup/bin/.link-sml  LINK=$twoup/bin/.link-sml
10    
11  if [ ! -x $LINK ] ; then  if [ ! -x $LINK ] ; then
12      echo Link script $LINK is not operational.      echo $this: link script $LINK is not operational.
13      exit 1      exit 1
14  fi  fi
15    
# Line 37  Line 38 
38      ARCH_N_OPSYS=`$twoup/bin/.arch-n-opsys`      ARCH_N_OPSYS=`$twoup/bin/.arch-n-opsys`
39      if [ "$?" = "0" ]; then      if [ "$?" = "0" ]; then
40          eval $ARCH_N_OPSYS          eval $ARCH_N_OPSYS
41          echo Architecture: $ARCH          echo $this: architecture = $ARCH
42      fi      fi
43  fi  fi
44    
# Line 49  Line 50 
50      if [ -d $1 ] ; then      if [ -d $1 ] ; then
51          if [ ! -d $2 ] ; then          if [ ! -d $2 ] ; then
52              if [ -f $2 ] ; then              if [ -f $2 ] ; then
53                  echo makeml: $2 exists as a non-directory.                  echo $this: $2 exists as a non-directory
54                  exit 1                  exit 1
55              fi              fi
56              mkdir $2              mkdir $2
# Line 72  Line 73 
73      case $arg in      case $arg in
74      -run)      -run)
75          if [ "$#" = "0" ]; then          if [ "$#" = "0" ]; then
76              echo "makeml: missing argument for \"-run\" option"              echo "$this: missing argument for \"-run\" option"
77              exit 1              exit 1
78          fi          fi
79          RUN="@SMLrun=$1"; shift          RUN="@SMLrun=$1"; shift
# Line 83  Line 84 
84          ;;          ;;
85      -rebuild)      -rebuild)
86          if [ "$#" = "0" ]; then          if [ "$#" = "0" ]; then
87              echo "makeml: missing argument for \"-rebuild\" option"              echo "$this: missing argument for \"-rebuild\" option"
88              exit 1              exit 1
89          fi          fi
90          rebuilt=yes          rebuilt=yes
# Line 91  Line 92 
92          ;;          ;;
93      -o)      -o)
94          if [ "$#" = "0" ]; then          if [ "$#" = "0" ]; then
95              echo "makeml: missing argument for \"-o\" option"              echo "$this: missing argument for \"-o\" option"
96              exit 1              exit 1
97          fi          fi
98          HEAP=$1; shift          HEAP=$1; shift
99          ;;          ;;
100      -alloc)      -alloc)
101          if [ "$#" = "0" ]; then          if [ "$#" = "0" ]; then
102              echo "makeml: missing argument for \"-alloc\" option"              echo "$this: missing argument for \"-alloc\" option"
103              exit 1              exit 1
104          fi          fi
105          ALLOC=$1; shift          ALLOC=$1; shift
106          ;;          ;;
107      -boot)      -boot)
108          if [ "$#" = "0" ]; then          if [ "$#" = "0" ]; then
109              echo "makeml: missing argument for \"-boot\" option"              echo "$this: missing argument for \"-boot\" option"
110              exit 1              exit 1
111          fi          fi
112          BOOT_DIR=$1; shift          BOOT_DIR=$1; shift
# Line 114  Line 115 
115          ARGS="$ARGS $arg"          ARGS="$ARGS $arg"
116          ;;          ;;
117      *)      *)
118          echo "makeml: unknown argument \"$arg\""          echo "$this: unknown argument \"$arg\""
119          exit 1          exit 1
120          ;;          ;;
121      esac      esac
# Line 131  Line 132 
132  # If this was a -rebuild run, we have to quit now...  # If this was a -rebuild run, we have to quit now...
133  #  #
134      if [ $rebuilt = yes ] ; then      if [ $rebuilt = yes ] ; then
135          echo New binfiles are ready.          echo $this: New binfiles are ready.
136          exit 0          exit 0
137      fi      fi
138      echo Heap image generated.      echo $this: Heap image generated.
139  else  else
140      echo Something broke.      echo $this: Something broke.
141      exit 1      exit 1
142  fi  fi
143    

Legend:
Removed from v.576  
changed lines
  Added in v.577

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