Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -15,10 +15,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.341 2002/05/09 15:40:22 gawthrop +## -dr touches copied files to redo timestamp +## ## Revision 1.340 2002/05/08 22:13:47 geraint ## Removed redundant path from mtt_*.cc targets in mexglx build line. ## ## Revision 1.339 2002/05/08 21:32:26 geraint ## Tidied up $1_ode2odes_*.* targets and renamed dummies as *.stamp. @@ -1608,10 +1611,11 @@ rm -f *_csex.oct *_numpar.oct *_smxa.oct *_state.oct rm -f *_ode.oct *_odeo.oct rm -f *_cseo.mexglx *_input.mexglx *_simpar.mexglx *_smxax.mexglx rm -f *_csex.mexglx *_numpar.mexglx *_smxa.mexglx *_state.mexglx rm -f *_ode.mexglx *_odeo.mexglx + rm -f *_sfun.mexglx rm -f *_cseo.cc *_input.cc *_simpar.cc *_smxax.cc rm -f *_csex.cc *_numpar.cc *_smxa.cc *_state.cc rm -f *_ode.cc *_odeo.cc rm -f *_logic.m *_logic.cc *_logic.oct rm -f *_state.m *_state.cc *_state.oct @@ -1648,10 +1652,11 @@ rm -f $1_csex.oct $1_numpar.oct $1_smxa.oct $1_state.oct rm -f $1_ode.oct $1_odeo.oct rm -f $1_cseo.mexglx $1_input.mexglx $1_simpar.mexglx $1_smxax.mexglx rm -f $1_csex.mexglx $1_numpar.mexglx $1_smxa.mexglx $1_state.mexglx rm -f $1_ode.mexglx $1_odeo.mexglx + rm -f $1_sfun.mexglx rm -f $1_cseo.cc $1_input.cc $1_simpar.cc $1_smxax.cc rm -f $1_csex.cc $1_numpar.cc $1_smxa.cc $1_state.cc rm -f $1_ode.cc $1_odeo.cc rm -f $1_logic.m $1_logic.cc $1_logic.oct rm -f $1_state.m $1_state.cc $1_state.oct ADDED mttroot/mtt/lib/rep/sfun_rep.make Index: mttroot/mtt/lib/rep/sfun_rep.make ================================================================== --- mttroot/mtt/lib/rep/sfun_rep.make +++ mttroot/mtt/lib/rep/sfun_rep.make @@ -0,0 +1,6 @@ +# -*-makefile-*- + +REP ?= "sfun" + +all: + ${MTT_REP}/sfun_rep.sh "$(OPTS)" "$(SYS)" "$(REP)" "$(LANG)" ADDED mttroot/mtt/lib/rep/sfun_rep.sh Index: mttroot/mtt/lib/rep/sfun_rep.sh ================================================================== --- mttroot/mtt/lib/rep/sfun_rep.sh +++ mttroot/mtt/lib/rep/sfun_rep.sh @@ -0,0 +1,31 @@ +#! /bin/sh + +set -e + +debug=0 +if [ $debug -eq 1 ]; then + set -x + make_debug='--debug=a' +else + set +x + make_debug='' +fi + +check_for_errors () +{ + errno=0 + # check stuff + case $errno in + 0) + ;; # ok + *) + echo "E $errno"; + exit $errno; + ;; + esac +} + +check_for_errors $* + +OPTS="$1" SYS="$2" REP="$3" LANG="$4" make $make_debug -f ${MTT_REP}/sfun_rep/Makefile ${2}_${3}.${4} +exit 0