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/installml
ViewVC logotype

Diff of /sml/trunk/src/system/installml

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

revision 469, Wed Nov 10 22:42:52 1999 UTC revision 498, Tue Dec 7 15:44:50 1999 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3    # The tmpfile is for pathconfig editing (see below).
4    tmpfile=pathconfig.tmp.$$
5    
6    trap 'rm -f $tmpfile; exit 1' 0 1 2 3 15
7    
8  MAIN_HEAP_DIR=../../bin/.heap  MAIN_HEAP_DIR=../../bin/.heap
9  MAIN_LIB_DIR=../../lib  MAIN_LIB_DIR=../../lib
10    
# Line 55  Line 60 
60      fi      fi
61  done  done
62    
63    # Update the pathconfig file in $MAIN_LIB_DIR
64    #  The awk script below replaces the original binding in $pcfile
65    #  with its fresh counterpart should there be one.  Other bindings
66    #  are retained and brand new ones are added.
67    pcfile=$MAIN_LIB_DIR/pathconfig
68    if [ -f $pcfile ] ; then
69        cp $pcfile $tmpfile
70    fi
71    rm -f $pcfile
72    cat $LIB_DIR/pathconfig >>$tmpfile
73    awk <$tmpfile >$pcfile 'NF == 2 { mapping[$1] = $2 }
74    NF != 2 { print $0 }
75    END { for (i in mapping) print i, mapping[i] }'
76    
77  rm -r $LIB_DIR  rm -r $LIB_DIR

Legend:
Removed from v.469  
changed lines
  Added in v.498

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