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

SCM Repository

[diderot] View of /branches/vis15/src/compiler/gen/fragments/mkmk_sh.in
ViewVC logotype

View of /branches/vis15/src/compiler/gen/fragments/mkmk_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3817 - (download) (annotate)
Wed May 4 17:12:06 2016 UTC (3 years, 2 months ago) by jhr
File size: 660 byte(s)
  working on merge: more configuration hacking
#!/bin/sh
#
# wrapper script for MkFrags.mkMakefile function
#

PROG=mkmk

if [ $# != 1 ] ; then
  echo "usage: $PROG.sh <dir>"
  exit 1
fi

DIR=$1

SRC=@DIDEROT_SRCDIR@/compiler/gen/fragments/mkfrags.sml

if test "@SML@" = "smlnj" ; then
@SMLNJ_CMD@ $SRC 2> /dev/null 1>/dev/null <<XXXX
MkFrags.mkMakefile "$DIR";
XXXX
exit $?
elif test "@SML@" = "mlton" ; then
  HERE=$(pwd)
  cd @DIDEROT_SRCDIR@/compiler/gen/fragments
  @MLTON@ -output $PROG sources.mlb || exit $1
  cd $HERE
  @DIDEROT_SRCDIR@/compiler/gen/fragments/$PROG $DIR || exit $1
  rm -f @DIDEROT_SRCDIR@/compiler/gen/fragments/$PROG
  exit 0
else
  echo "unknown SML implementation"
  exit 1
fi

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