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 937, Thu Sep 20 21:20:28 2001 UTC revision 1038, Mon Jan 28 00:18:03 2002 UTC
# Line 191  Line 191 
191      lynx -source $1/$2 >$3      lynx -source $1/$2 >$3
192  }  }
193    
194    usecurl() {
195        curl -s $1/$2 >$3
196    }
197    
198  testurlgetter() {  testurlgetter() {
199      (exec >/dev/null 2>&1 ; exec $*)      (exec >/dev/null 2>&1 ; exec $*)
200  }  }
# Line 203  Line 207 
207      if [ "$URLGETTER" = unknown ] ; then      if [ "$URLGETTER" = unknown ] ; then
208          if testurlgetter wget --help ; then          if testurlgetter wget --help ; then
209              URLGETTER="fetchurl usewget"              URLGETTER="fetchurl usewget"
210            elif testurlgetter curl --help ; then
211                URLGETTER="fetchurl usecurl"
212          elif testurlgetter lynx -help ; then          elif testurlgetter lynx -help ; then
213              URLGETTER="fetchurl uselynx"              URLGETTER="fetchurl uselynx"
214          else          else
# Line 372  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 386  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 656  Line 668 
668          reglib c-int.cm c-int.cm ml-nlffi-lib/internals          reglib c-int.cm c-int.cm ml-nlffi-lib/internals
669          reglib c.cm c.cm ml-nlffi-lib          reglib c.cm c.cm ml-nlffi-lib
670          ;;          ;;
671          pgraph-util)
672            unpack "CM source code" $SRCDIR cm cm
673            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.937  
changed lines
  Added in v.1038

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