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 /config/trunk/install.sh
ViewVC logotype

Diff of /config/trunk/install.sh

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

revision 1047, Tue Jan 29 21:31:50 2002 UTC revision 1251, Fri Jul 5 15:56:34 2002 UTC
# Line 9  Line 9 
9  # by M.Blume (2/2000).  # by M.Blume (2/2000).
10  #  #
11    
12    if [ x${INSTALL_QUIETLY} = xtrue ] ; then
13        export CM_VERBOSE=false
14    fi
15    
16    vsay() {
17        if [ x${INSTALL_DEBUG} = xtrue ] ; then
18            echo "$@"
19        elif [ x${INSTALL_QUIETLY} = xtrue ] ; then
20            :
21        else
22            echo "$@"
23        fi
24    }
25    
26    dsay() {
27        if [ x${INSTALL_DEBUG} = xtrue ] ; then
28            echo "$@"
29        fi
30    }
31    
32    complain() {
33        echo "$@"
34        exit 1
35    }
36    
37    # The following variable holds the name of all possible targets.
38    # The names must occur in the order in which targets are to be built.
39    ALLTARGETS=\
40    "src-smlnj \
41     ml-yacc \
42     ml-lex \
43     ml-burg \
44     ml-nlffigen \
45     smlnj-lib \
46     cml \
47     cml-lib \
48     eXene \
49     ckit \
50     ml-nlffi-lib \
51     pgraph-util \
52     mlrisc-tools \
53     nowhere \
54     doc"
55    
56  this=$0  this=$0
57    
58    # By default, move libraries to lib directory:
59    MOVE_LIBRARIES=true
60    
61    # function to be used in config/targets:
62    dont_move_libraries() { MOVE_LIBRARIES=false ; }
63    
64    # Initialize target list.
65    TARGETS=""
66    
67    # function to be used in config/targets:
68    request() { TARGETS="$TARGETS $1" ; }
69    
70  #  #
71  # get the target list  # get the target list
72  #  #
73  if [ -r config/targets.customized ] ; then  if [ -r config/targets.customized ] ; then
74      . config/targets.customized      . config/targets.customized
75  elif [ ! -r config/targets ]; then  elif [ ! -r config/targets ]; then
76      echo "$this: !!! File config/targets is missing."      complain "$this: !!! File config/targets is missing."
     exit 1  
77  else  else
78      . config/targets      . config/targets
79  fi  fi
80    
81  #  #
82    # resolve dependencies
83    #
84    isnotin() {
85        tested_x=$1
86        shift
87        for set_y in "$@" ; do
88            if [ ${tested_x} = ${set_y} ] ; then
89                return 1
90            fi
91        done
92        return 0
93    }
94    
95    require() {
96        require_who=$1
97        shift
98        if isnotin ${require_who} ${TARGETS} ; then
99            :
100        else
101            for required_x in "$@" ; do
102                if isnotin ${required_x} ${TARGETS} ; then
103                    echo "Including ${required_x} (needed by ${require_who})."
104                    request ${required_x}
105                    CHANGED=true
106                fi
107            done
108        fi
109    }
110    
111    onepass() {
112        while read depline ; do
113            require $depline
114        done
115    }
116    
117    if [ -r config/dependencies ] ; then
118        CHANGED=true
119        while [ $CHANGED = true ]; do
120            CHANGED=false
121            onepass <config/dependencies
122        done
123    fi
124    
125    #
126    # Rebuild target list using the order defined by ALLTARGETS.
127    #
128    NEWTARGETS=""
129    for t in ${ALLTARGETS} ; do
130        if isnotin $t ${TARGETS} ; then
131            :
132        else
133            NEWTARGETS="$NEWTARGETS $t"
134        fi
135    done
136    TARGETS=$NEWTARGETS
137    
138    #
139  # create the preloads.standard file  # create the preloads.standard file
140  #  #
141  if [ ! -r config/preloads ]; then  if [ ! -r config/preloads ]; then
142      echo "$this: !!! File config/preloads is missing."      complain "$this: !!! File config/preloads is missing."
     exit 1  
143  fi  fi
144  cp config/preloads preloads.standard  cp config/preloads preloads.standard
145    
# Line 38  Line 149 
149  #  #
150  MAKE=make  MAKE=make
151    
 #  
 # Make sure we don't have any unpleasant surprises due to the installing  
 # user's process environment:  
 #  
 unset CM_PATHCONFIG  
   
152  SHELL=/bin/sh  SHELL=/bin/sh
153  echo $this: Using shell $SHELL.  vsay $this: Using shell $SHELL.
154    
155  #  #
156  # set the SML root directory  # set the SML root directory
157  #  #
158  REAL_PWD=`pwd`  REAL_PWD=`pwd`
159  ROOT=${PWD:-$REAL_PWD}  ROOT=${PWD:-$REAL_PWD}
160  echo $this: SML root is $ROOT.  vsay $this: SML root is $ROOT.
161  echo $this: Installation directory is ${INSTALLDIR:=$ROOT}.  vsay $this: Installation directory is ${INSTALLDIR:=$ROOT}.
162    
163  #  #
164  # set the various directory and file pathname variables  # set the various directory and file pathname variables
# Line 99  Line 204 
204  #  #
205  # set the CM configuration variables (these are environment variables  # set the CM configuration variables (these are environment variables
206  # that will be queried by the bootstrap code)  # that will be queried by the bootstrap code)
207  # Especially important is CM_PATHCONFIG_DEFAULT.  # Especially important is CM_PATHCONFIG.
208  #  #
209  CM_PATHCONFIG_DEFAULT=$LIBDIR/pathconfig  CM_PATHCONFIG=$LIBDIR/pathconfig
210  export CM_PATHCONFIG_DEFAULT  export CM_PATHCONFIG
211    
212  #  #
213  # the release version that we are installing  # the release version that we are installing
214  #  #
215  VERSION=`cat $CONFIGDIR/version`  VERSION=`cat $CONFIGDIR/version`
216  echo $this: Installing version $VERSION.  vsay $this: Installing version $VERSION.
217    
218  #  #
219  # the URL for the (usually remote) source archive  # the URL for the (usually remote) source archive
220  #  #
221  SRCARCHIVEURL=`cat $CONFIGDIR/srcarchiveurl`  SRCARCHIVEURL=`cat $CONFIGDIR/srcarchiveurl`
222  echo $this: URL of source archive is $SRCARCHIVEURL.  vsay $this: URL of source archive is $SRCARCHIVEURL.
223    
224  #  #
225  # Function to make a directory including its ancestors.  # Function to make a directory including its ancestors.
# Line 126  Line 231 
231          :          :
232      else      else
233          makedir `dirname $1`          makedir `dirname $1`
234          echo "$this: Making directory $1"          if [ x${INSTALL_VERBOSE} = xtrue ] ; then
235                vsay "$this: Making directory $1"
236            fi
237          if mkdir $1 ; then          if mkdir $1 ; then
238              :              :
239          else          else
240              echo "$this: !!! Unable to make directory $1!"              complain "$this: !!! Unable to make directory $1!"
             exit 1  
241          fi          fi
242      fi      fi
243  }  }
# Line 159  Line 265 
265  #  #
266  fetchurl() {  fetchurl() {
267      getter=$1 ; shift      getter=$1 ; shift
268      echo $this: Fetching $1 from $3. Please stand by...      vsay $this: Fetching $1 from $3. Please stand by...
269      fetched=no      fetched=no
270      for base in $2 $VERSION-$2 ; do      for base in $2 $VERSION-$2 ; do
271          for ext in tar.gz tgz tar.Z tz tar tar.bz2 ; do          for ext in tgz tar.gz tar.Z tz tar tar.bz2 ; do
272              try=$base.$ext              try=$base.$ext
273              echo $this: Trying $try ...              vsay $this: Trying $try ...
274              if $getter $3/$try $ROOT/$try ; then              if $getter $3/$try $ROOT/$try ; then
275                  fetched=yes                  fetched=yes
276                  echo $this: Fetching $try was a success.                  vsay $this: Fetching $try was a success.
277                  break 2         # get out of both for-loops                  break 2         # get out of both for-loops
278              else              else
279                  rm -f $ROOT/$try                  rm -f $ROOT/$try
# Line 238  Line 344 
344    
345  # wrapper for tar  # wrapper for tar
346  un_tar() {  un_tar() {
347      echo "$this: Un-TAR-ing $1 archive."      vsay "$this: Un-TAR-ing $1 archive."
348      tar -xf $2      tar -xf $2
349  }  }
350    
351  # wrapper for zcat followed by tar  # wrapper for zcat followed by tar
352  un_tar_Z() {  un_tar_Z() {
353      echo "$this: Un-COMPRESS-ing and un-TAR-ing $1 archive."      vsay "$this: Un-COMPRESS-ing and un-TAR-ing $1 archive."
354      zcat $2 | tar -xf -      zcat $2 | tar -xf -
355  }  }
356    
357  # wrapper for gunzip followed by tar  # wrapper for gunzip followed by tar
358  un_tar_gz() {  un_tar_gz() {
359      echo "$this: Un-GZIP-ing and un-TAR-ing $1 archive."      vsay "$this: Un-GZIP-ing and un-TAR-ing $1 archive."
360      gunzip -c $2 | tar -xf -      gunzip -c $2 | tar -xf -
361  }  }
362    
363  # wrapper for bunzip2 followed by tar  # wrapper for bunzip2 followed by tar
364  un_tar_bz2() {  un_tar_bz2() {
365      echo "$this: Un-BZIP2-ing and un-TAR-ing $1 archive."      vsay "$this: Un-BZIP2-ing and un-TAR-ing $1 archive."
366      bunzip2 -c $2 | tar -xf -      bunzip2 -c $2 | tar -xf -
367  }  }
368    
# Line 291  Line 397 
397         unarchive "$1" $4.tgz un_tar_gz ||         unarchive "$1" $4.tgz un_tar_gz ||
398         unarchive "$1" $4.tar.Z un_tar_Z ||         unarchive "$1" $4.tar.Z un_tar_Z ||
399         unarchive "$1" $4.tar un_tar ||         unarchive "$1" $4.tar un_tar ||
400         unarchive "$1" $4.tar.bz1 un_tar_bz2 ||         unarchive "$1" $4.tar.bz2 un_tar_bz2 ||
401         unarchive "$1" $4.tz un_tar_Z         unarchive "$1" $4.tz un_tar_Z
402      then      then
403          : we are done          : we are done
# Line 309  Line 415 
415  unpack() {  unpack() {
416      tryfetch=yes      tryfetch=yes
417      if [ -d $2/$3 ]; then      if [ -d $2/$3 ]; then
418          echo "$this: The $1 tree already exists."          vsay "$this: The $1 tree already exists."
419      else      else
420          fetch_n_unpack "$1" "$2" "$3" "$4"          fetch_n_unpack "$1" "$2" "$3" "$4"
421      fi      fi
422      if [ ! -d $2/$3 ]; then      if [ ! -d $2/$3 ]; then
423          echo "$this: !!! Unable to unpack $1 archive."          complain "$this: !!! Unable to unpack $1 archive."
         exit 1  
424      fi      fi
425  }  }
426    
# Line 327  Line 432 
432      if [ -d $1 ] ; then      if [ -d $1 ] ; then
433          if [ ! -d $2 ] ; then          if [ ! -d $2 ] ; then
434              if [ -f $2 ] ; then              if [ -f $2 ] ; then
435                  echo $this: $2 exists as a non-directory.                  complain $this: $2 exists as a non-directory.
                 exit 1  
436              fi              fi
437              mkdir $2              mkdir $2
438          fi          fi
# Line 388  Line 492 
492      fi      fi
493    
494      if [ -f ${FINALLOC} ] ; then      if [ -f ${FINALLOC} ] ; then
495          echo "$this: Library ${LIBNAME} already exists in ${FINALLOC}"          vsay "$this: Library ${LIBNAME} already exists in ${FINALLOC}"
496      else      else
497          echo "$this: Scheduling library ${LIBNAME} to be built as ${FINALLOC}."          vsay "$this: Scheduling library ${LIBNAME} to be built as ${FINALLOC}."
498          echo "  andalso CM.stabilize false \"${LIBNAME}\"" >>${LIBLIST}          echo "  andalso CM.stabilize false \"${LIBNAME}\"" >>${LIBLIST}
499          echo ${ANCHOR} ${ADIR} >>${LOCALPATHCONFIG}          echo ${ANCHOR} ${ADIR} >>${LOCALPATHCONFIG}
500          if [ x$MOVE_LIBRARIES = xtrue ] ; then          if [ x$MOVE_LIBRARIES = xtrue ] ; then
501              echo movelib ${SRCFINALLOC} ${FINALLOC} >>${LIBMOVESCRIPT}              echo movelib ${SRCFINALLOC} ${FINALLOC} >>${LIBMOVESCRIPT}
502          fi          fi
503      fi      fi
504      echo ${ANCHOR} ${FINALCONFIGPATH} >>${CM_PATHCONFIG_DEFAULT}      echo ${ANCHOR} ${FINALCONFIGPATH} >>${CM_PATHCONFIG}
505  }  }
506    
507  #  #
# Line 423  Line 527 
527           MYSRCDIR=$SRCDIR           MYSRCDIR=$SRCDIR
528      fi      fi
529      if [ -r $HEAPDIR/$TARGET ] ; then      if [ -r $HEAPDIR/$TARGET ] ; then
530          echo $this: Target $TARGET already exists.          vsay $this: Target $TARGET already exists.
531      else      else
532          echo $this: Building $TARGET.          echo $this: Building $TARGET.
533          unpack $2 $MYSRCDIR $1 $1          unpack $2 $MYSRCDIR $1 $1
# Line 443  Line 547 
547      fi      fi
548  }  }
549    
550    ######################################################################
551    
552  #  #
553  # create the various sub directories  # create the various sub directories
554  #  #
# Line 454  Line 560 
560  # install the script that tests the architecture, and make sure that it works  # install the script that tests the architecture, and make sure that it works
561  #  #
562  if [ -x $BINDIR/.arch-n-opsys ]; then  if [ -x $BINDIR/.arch-n-opsys ]; then
563      echo $this: Script $BINDIR/.arch-n-opsys already exists.      vsay $this: Script $BINDIR/.arch-n-opsys already exists.
564  else  else
565      cat $CONFIGDIR/_arch-n-opsys \      cat $CONFIGDIR/_arch-n-opsys \
566      | sed -e "s,@SHELL@,$SHELL,g" > $BINDIR/.arch-n-opsys      | sed -e "s,@SHELL@,$SHELL,g" > $BINDIR/.arch-n-opsys
567      chmod 555 $BINDIR/.arch-n-opsys      chmod 555 $BINDIR/.arch-n-opsys
568      if [ ! -x $BINDIR/.arch-n-opsys ]; then      if [ ! -x $BINDIR/.arch-n-opsys ]; then
569          echo "$this: !!! Installation of $BINDIR/.arch-n-opsys failed."          complain "$this: !!! Installation of $BINDIR/.arch-n-opsys failed."
         exit 1  
570      fi      fi
571  fi  fi
572    
# Line 471  Line 576 
576      echo "$this: !!! You must patch this by hand and repeat the installation."      echo "$this: !!! You must patch this by hand and repeat the installation."
577      exit 2      exit 2
578  else  else
579      echo $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS.      vsay $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS.
580  fi  fi
581  eval $ARCH_N_OPSYS  eval $ARCH_N_OPSYS
582    
# Line 497  Line 602 
602              > $BINDIR/$ddst              > $BINDIR/$ddst
603          chmod 555 $BINDIR/$ddst          chmod 555 $BINDIR/$ddst
604          if [ ! -x $BINDIR/$ddst ]; then          if [ ! -x $BINDIR/$ddst ]; then
605              echo "$this: !!! Installation of $BINDIR/${ddst} failed."              complain "$this: !!! Installation of $BINDIR/${ddst} failed."
             exit 1  
606          fi          fi
607  #   fi  #   fi
608  }  }
# Line 538  Line 642 
642      linux)      linux)
643          EXTRA_DEFS=`$CONFIGDIR/chk-global-names.sh`          EXTRA_DEFS=`$CONFIGDIR/chk-global-names.sh`
644          if [ "$?" != "0" ]; then          if [ "$?" != "0" ]; then
645              echo "$this: !!! Problems checking for underscores in asm names."              complain "$this: !!! Problems checking for underscores in asm names."
             exit 1  
646          fi          fi
647          EXTRA_DEFS="XDEFS=$EXTRA_DEFS"          EXTRA_DEFS="XDEFS=$EXTRA_DEFS"
648          ;;          ;;
# Line 556  Line 659 
659  #  #
660  unpack "run-time" $SRCDIR runtime runtime  unpack "run-time" $SRCDIR runtime runtime
661  if [ -x $RUNDIR/run.$ARCH-$OPSYS ]; then  if [ -x $RUNDIR/run.$ARCH-$OPSYS ]; then
662      echo $this: Run-time system already exists.      vsay $this: Run-time system already exists.
663  else  else
664      cd $SRCDIR/runtime/objs      cd $SRCDIR/runtime/objs
665      echo $this: Compiling the run-time system.      echo $this: Compiling the run-time system.
# Line 565  Line 668 
668          mv run.$ARCH-$OPSYS $RUNDIR          mv run.$ARCH-$OPSYS $RUNDIR
669          $MAKE MAKE=$MAKE clean          $MAKE MAKE=$MAKE clean
670      else      else
671          echo "$this: !!! Run-time system build failed for some reason."          complain "$this: !!! Run-time system build failed for some reason."
         exit 1  
672      fi      fi
673  fi  fi
674  cd $SRCDIR  cd $SRCDIR
# Line 575  Line 677 
677  # boot the base SML system  # boot the base SML system
678  #  #
679  if [ -r $HEAPDIR/sml.$HEAP_SUFFIX ]; then  if [ -r $HEAPDIR/sml.$HEAP_SUFFIX ]; then
680      echo $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.      vsay $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.
681  else  else
682      unpack bin $ROOT $BOOT_FILES $BOOT_ARCHIVE      unpack bin $ROOT $BOOT_FILES $BOOT_ARCHIVE
683      cd $ROOT/$BOOT_FILES      cd $ROOT/$BOOT_FILES
# Line 593  Line 695 
695              cd $ROOT/$BOOT_FILES              cd $ROOT/$BOOT_FILES
696              for anchor in * ; do              for anchor in * ; do
697                  if [ -d $anchor ] ; then                  if [ -d $anchor ] ; then
698                      echo $anchor $anchor >>$CM_PATHCONFIG_DEFAULT                      echo $anchor $anchor >>$CM_PATHCONFIG
699                      move $anchor $LIBDIR/$anchor                      move $anchor $LIBDIR/$anchor
700                  fi                  fi
701              done              done
# Line 602  Line 704 
704              rm -rf $BOOT_FILES              rm -rf $BOOT_FILES
705    
706          else          else
707              echo "$this !!! No heap image generated (sml.$HEAP_SUFFIX)."              complain "$this !!! No heap image generated (sml.$HEAP_SUFFIX)."
             exit 1  
708          fi          fi
709      else      else
710          echo "$this !!! Boot code failed, no heap image (sml.$HEAP_SUFFIX)."          complain "$this !!! Boot code failed, no heap image (sml.$HEAP_SUFFIX)."
         exit 1  
711      fi      fi
712  fi  fi
713    
# Line 622  Line 722 
722  # now build (or prepare to build) the individual targets  # now build (or prepare to build) the individual targets
723  #  #
724  cd $SRCDIR  cd $SRCDIR
725  echo $this: Installing other targets.  vsay $this: Installing other targets.
726  for i in $TARGETS ; do  for i in $TARGETS ; do
727      case $i in      case $i in
728        src-smlnj)        src-smlnj)
# Line 633  Line 733 
733          ;;          ;;
734        ml-yacc)        ml-yacc)
735          standalone ml-yacc ML-Yacc src          standalone ml-yacc ML-Yacc src
736          echo ml-yacc $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-yacc $TOOLDIR >>$CM_PATHCONFIG
737          ;;          ;;
738        ml-lex)        ml-lex)
739          standalone ml-lex ML-Lex          standalone ml-lex ML-Lex
740          echo ml-lex $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-lex $TOOLDIR >>$CM_PATHCONFIG
741          ;;          ;;
742        ml-burg)        ml-burg)
743          standalone ml-burg ML-Burg          standalone ml-burg ML-Burg
744          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG
745          ;;          ;;
746        ml-nlffigen)        ml-nlffigen)
747          echo standalone ml-nlffigen ML-NLFFI-Gen >>$LATESTANDALONES          echo standalone ml-nlffigen ML-NLFFI-Gen >>$LATESTANDALONES
748          echo ml-nlffigen $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-nlffigen $TOOLDIR >>$CM_PATHCONFIG
749          ;;          ;;
750        smlnj-lib)        smlnj-lib)
751          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib
# Line 657  Line 757 
757              #reglib html-lib.cm html-lib.cm smlnj-lib/HTML              #reglib html-lib.cm html-lib.cm smlnj-lib/HTML
758          # ... and don't make the PP library ...          # ... and don't make the PP library ...
759              #reglib pp-lib.cm pp-lib.cm smlnj-lib/PP              #reglib pp-lib.cm pp-lib.cm smlnj-lib/PP
760            # ... and don't make the controls library ...
761                #reglib controls-lib.cm controls-lib.cm smlnj-lib/Controls
762          # make the Unix library          # make the Unix library
763              reglib unix-lib.cm unix-lib.cm smlnj-lib/Unix              reglib unix-lib.cm unix-lib.cm smlnj-lib/Unix
764          # make the INet library          # make the INet library
# Line 665  Line 767 
767              reglib regexp-lib.cm regexp-lib.cm smlnj-lib/RegExp              reglib regexp-lib.cm regexp-lib.cm smlnj-lib/RegExp
768          # make the Reactive library          # make the Reactive library
769              reglib reactive-lib.cm reactive-lib.cm smlnj-lib/Reactive              reglib reactive-lib.cm reactive-lib.cm smlnj-lib/Reactive
770            # make the HashCons library
771                reglib hash-cons-lib.cm hash-cons-lib.cm smlnj-lib/HashCons
772          ;;          ;;
773        cml)        cml)
774          unpack CML $SRCDIR cml cml          unpack CML $SRCDIR cml cml
# Line 688  Line 792 
792          ;;          ;;
793        ml-nlffi-lib)        ml-nlffi-lib)
794          unpack "NLFFI Library" $SRCDIR ml-nlffi-lib ml-nlffi-lib          unpack "NLFFI Library" $SRCDIR ml-nlffi-lib ml-nlffi-lib
795          reglib memory.cm memory.cm ml-nlffi-lib/memory          reglib c memory/memory.cm ml-nlffi-lib
796          reglib c-int.cm c-int.cm ml-nlffi-lib/internals          reglib c internals/c-int.cm ml-nlffi-lib
797          reglib c.cm c.cm ml-nlffi-lib          reglib c c.cm ml-nlffi-lib
798          ;;          ;;
799        pgraph-util)        pgraph-util)
800          unpack "CM source code" $SRCDIR cm cm          unpack "CM source code" $SRCDIR cm cm
# Line 708  Line 812 
812        nowhere)        nowhere)
813          unpack "MLRISC Tools Library" $SRCDIR MLRISC MLRISC          unpack "MLRISC Tools Library" $SRCDIR MLRISC MLRISC
814          echo standalone nowhere NoWhere . MLRISC/Tools >>$LATESTANDALONES          echo standalone nowhere NoWhere . MLRISC/Tools >>$LATESTANDALONES
815          echo nowhere $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo nowhere $TOOLDIR >>$CM_PATHCONFIG
816          ;;          ;;
817        doc)        doc)
818          unpack Doc $ROOT doc doc          echo Package doc is currently unavailable.
819          cd $ROOT/doc          # unpack Doc $ROOT doc doc
820          build $ROOT          # cd $ROOT/doc
821            # build $ROOT
822          ;;          ;;
823        *)        *)
824          echo "$this: !!! Unknown target $i."          echo "$this: !!! Unknown target $i."
# Line 730  Line 835 
835  echo $this: Compiling library code.  echo $this: Compiling library code.
836  echo 'then OS.Process.success else OS.Process.failure));' >>$LIBLIST  echo 'then OS.Process.success else OS.Process.failure));' >>$LIBLIST
837  if CM_LOCAL_PATHCONFIG=$LOCALPATHCONFIG $BINDIR/sml <$LIBLIST ; then  if CM_LOCAL_PATHCONFIG=$LOCALPATHCONFIG $BINDIR/sml <$LIBLIST ; then
838      echo $this: Libraries compiled successfully.      vsay $this: Libraries compiled successfully.
839  else  else
840      echo "$this: !!! Something went wrong when compiling the libraries."      complain "$this: !!! Something went wrong when compiling the libraries."
     exit 1  
841  fi  fi
842    
843  #  #
# Line 741  Line 845 
845  #  #
846    
847  if [ -r $LIBMOVESCRIPT ] ; then  if [ -r $LIBMOVESCRIPT ] ; then
848      echo $this: Moving libraries to $LIBDIR.      vsay $this: Moving libraries to $LIBDIR.
849      . $LIBMOVESCRIPT      . $LIBMOVESCRIPT
850  fi  fi
851    
# Line 751  Line 855 
855  #  #
856    
857  if [ -r $LATESTANDALONES ] ; then  if [ -r $LATESTANDALONES ] ; then
858      echo $this: Building late standalone programs.      vsay $this: Building late standalone programs.
859      . $LATESTANDALONES      . $LATESTANDALONES
860  fi  fi
861    
862  #  #
863  # Finally, remove duplicate entries from pathconfig file...  # Finally, remove duplicate entries from pathconfig file...
864  #  #
865  if [ -f $CM_PATHCONFIG_DEFAULT ] ; then  if [ -f $CM_PATHCONFIG ] ; then
866      cp $CM_PATHCONFIG_DEFAULT $PCEDITTMP      cp $CM_PATHCONFIG $PCEDITTMP
867      rm -f $CM_PATHCONFIG_DEFAULT      rm -f $CM_PATHCONFIG
868      awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }      awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }
869  NF != 2 { print $0 }  NF != 2 { print $0 }
870  END { for (i in mapping) print i, mapping[i] }' \  END { for (i in mapping) print i, mapping[i] }' \
871        | sort >$CM_PATHCONFIG_DEFAULT        | sort >$CM_PATHCONFIG
872  fi  fi
873    
874  exit 0  exit 0

Legend:
Removed from v.1047  
changed lines
  Added in v.1251

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