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

Diff of /sml/trunk/config/install.sh

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

revision 975, Wed Oct 31 20:22:44 2001 UTC revision 1038, Mon Jan 28 00:18:03 2002 UTC
# Line 378  Line 378 
378    
379  #  #
380  # Function to build a standalone program such as ml-yacc.  The function takes  # Function to build a standalone program such as ml-yacc.  The function takes
381  # 2 or 3 arguments.  First the name of the program which at the same time  # 2 or 3 or 4 arguments.  First the name of the program which at the same time
382  # is the directory name under $SRCDIR where the sources reside.  The second  # is the directory name under $SRCDIR/$4 where the sources reside.  The second
383  # argument is a descriptive name for the program (passed on to "unpack").  # argument is a descriptive name for the program (passed on to "unpack").
384  # The optional third argument specifies the path relative to $SRCDIR/$1  # The optional third argument specifies the path relative to $SRCDIR/$4/$1
385  # of the directory where the program's heap image is to be found.  # of the directory where the program's heap image is to be found.
386    # The fourth argument, if missing, defaults to "."
387  #  #
388    
389  standalone() {  standalone() {
# Line 392  Line 393 
393      else      else
394          TARGETLOC=$TARGET          TARGETLOC=$TARGET
395      fi      fi
396        if [ $# = 4 ] ; then
397             MYSRCDIR=$SRCDIR/$4
398        else
399             MYSRCDIR=$SRCDIR
400        fi
401      if [ -r $HEAPDIR/$TARGET ] ; then      if [ -r $HEAPDIR/$TARGET ] ; then
402          echo $this: Target $TARGET already exists.          echo $this: Target $TARGET already exists.
403      else      else
404          echo $this: Building $TARGET.          echo $this: Building $TARGET.
405          unpack $2 $SRCDIR $1 $1          unpack $2 $MYSRCDIR $1 $1
406          cd $SRCDIR/$1          cd $MYSRCDIR/$1
407          # build it, but make sure we don't pick up some (unrelated)          # build it, but make sure we don't pick up some (unrelated)
408          # local path configuration...          # local path configuration...
409          CM_LOCAL_PATHCONFIG=/dev/null ./build          CM_LOCAL_PATHCONFIG=/dev/null ./build
# Line 666  Line 672 
672          unpack "CM source code" $SRCDIR cm cm          unpack "CM source code" $SRCDIR cm cm
673          reglib pgraph-util.cm pgraph-util.cm cm/pgraph          reglib pgraph-util.cm pgraph-util.cm cm/pgraph
674          ;;          ;;
675          mlrisc-tools)
676            unpack "MLRISC Tools Library" $SRCDIR MLRISC MLRISC
677            reglib mlrisc-tools pp.cm MLRISC/Tools
678            reglib mlrisc-tools source-map.cm MLRISC/Tools
679            reglib mlrisc-tools sml-ast.cm MLRISC/Tools
680            reglib mlrisc-tools prec-parser.cm MLRISC/Tools
681            reglib mlrisc-tools parser.cm MLRISC/Tools
682            reglib mlrisc-tools match-compiler.cm MLRISC/Tools
683            ;;
684          nowhere)
685            echo standalone nowhere NoWhere . MLRISC/Tools >>$LATESTANDALONES
686            echo nowhere $TOOLDIR >>$CM_PATHCONFIG_DEFAULT
687            ;;
688        doc)        doc)
689          unpack Doc $ROOT doc doc          unpack Doc $ROOT doc doc
690          cd $ROOT/doc          cd $ROOT/doc

Legend:
Removed from v.975  
changed lines
  Added in v.1038

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