Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/gen/fragments/mkfrags_sh.in
ViewVC logotype

Diff of /branches/vis15/src/compiler/gen/fragments/mkfrags_sh.in

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

revision 3816, Wed May 4 16:34:21 2016 UTC revision 3817, Wed May 4 17:12:06 2016 UTC
# Line 3  Line 3 
3  # wrapper script for MkFrags.mkFragments function  # wrapper script for MkFrags.mkFragments function
4  #  #
5    
6    PROG=mkfrags
7    
8  if [ $# != 1 ] ; then  if [ $# != 1 ] ; then
9    echo "usage: mkfrags <dir>"    echo "usage: $PROG.sh <dir>"
10    exit 1    exit 1
11  fi  fi
12    
# Line 12  Line 14 
14    
15  SRC=@DIDEROT_SRCDIR@/compiler/gen/fragments/mkfrags.sml  SRC=@DIDEROT_SRCDIR@/compiler/gen/fragments/mkfrags.sml
16    
17  #@SMLNJ_CMD@ $SRC 2> /dev/null 1>/dev/null <<XXXX  if test "@SML@" = "smlnj" ; then
18  @SMLNJ_CMD@ $SRC <<XXXX  @SMLNJ_CMD@ $SRC 2> /dev/null 1>/dev/null <<XXXX
19  MkFrags.mkFragments "$DIR";  MkFrags.mkFragments "$DIR";
20  XXXX  XXXX
   
21  exit $?  exit $?
22    elif test "@SML@" = "mlton" ; then
23      HERE=$(pwd)
24      cd @DIDEROT_SRCDIR@/compiler/gen/fragments
25      @MLTON@ -output $PROG sources.mlb || exit $1
26      cd $HERE
27      @DIDEROT_SRCDIR@/compiler/gen/fragments/$PROG $DIR || exit $1
28      rm -f @DIDEROT_SRCDIR@/compiler/gen/fragments/$PROG
29      exit 0
30    else
31      echo "unknown SML implementation"
32      exit 1
33    fi

Legend:
Removed from v.3816  
changed lines
  Added in v.3817

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