Overview
Comment: | Improved sh->csh conversion, reduces environment namespace pollution. Still need to do proper if [ -z $MTT_BASE ] ... else ... fi conversion. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
13c87384a1fdc1c304f5477918e8e792 |
User & Date: | geraint@users.sourceforge.net on 2001-04-12 03:08:00 |
Other Links: | branch diff | manifest | tags |
Context
2001-04-13
| ||
07:14:12 | Implemented lower level lbl.txt recognition of #NOT[V|P]AR check-in: 2716fc0220 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2001-04-12
| ||
03:08:00 |
Improved sh->csh conversion, reduces environment namespace pollution. Still need to do proper if [ -z $MTT_BASE ] ... else ... fi conversion. check-in: 13c87384a1 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
00:49:13 | Fixed .oct use of Octave globals: MTT_input_last MTT_input_index check-in: dde64a9300 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mttrc from [0f9552ddfb] to [640595783b].
︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.20 2001/04/10 13:08:19 gawthrop ## Smoother translation to .cs using sh2csh ## ## Revision 1.19 2001/03/30 15:13:49 gawthrop ## Rationalised simulation modes to each return mtt_data ## ## Revision 1.18 2001/03/19 02:28:52 geraint | > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.21 2001/04/10 13:56:13 gawthrop ## Uses standard mkoctfile ## ## Revision 1.20 2001/04/10 13:08:19 gawthrop ## Smoother translation to .cs using sh2csh ## ## Revision 1.19 2001/03/30 15:13:49 gawthrop ## Rationalised simulation modes to each return mtt_data ## ## Revision 1.18 2001/03/19 02:28:52 geraint |
︙ | ︙ | |||
163 164 165 166 167 168 169 | #export MKOCTFILE=$MTT_LIB/octave/mkoctfile # This for no optimisation export MKOCTFILE=mkoctfile # ode2odes.exe stuff # local system | | | | | | | | | | | | | | | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | #export MKOCTFILE=$MTT_LIB/octave/mkoctfile # This for no optimisation export MKOCTFILE=mkoctfile # ode2odes.exe stuff # local system PLAT="i686-pc-linux-gnu" # PREFIX="/usr/local" PREFIX="/usr" GCCVERS="2.95.2" SRCOCTAVE="/cvs/octave" # PLAT="mips-sgi-irix6.5" # PREFIX="/usr/people/bevangp/GNU" # GCCVERS="2.95.2" # SRCOCTAVE="${PREFIX}/../build/octave-2.1.33" # include paths IOCTAVE="-I${PREFIX}/include/octave" # library paths # LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp" LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp" LKPATHSEA="-L${SRCOCTAVE}/kpathsea -lkpathsea" LREADLINE=" -L${SRCOCTAVE}/readline -lreadline" LSYSTEM="-ldl -lm -lncurses" LF2C="-L${PREFIX}/lib/gcc-lib/${PLAT}/${GCCVERS} -lg2c" # compiler options DEBUG="-g" OPTIM="-O3" FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates" # exported variables export MTT_CXX="g++" export MTT_CXXFLAGS="${DEBUG} ${OPTIM} ${FLAGS}" export MTT_CXXLIBS="${LOCTAVE} ${LKPATHSEA} ${LREADLINE} ${LF2C} ${LSYSTEM}" export MTT_CXXINCS="-I. ${IOCTAVE}" export MTT_LDFLAGS=" " fi |
Modified mttroot/mtt/bin/sh2csh from [bc04f77afa] to [cebb90b9e9].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.1 1999/03/11 04:02:45 peterg ## Initial revision ## ############################################################### echo Converting $1 to $1.csh #Converts mttrc to csh form. date=`date` cat<<EOF >$1.csh #!/bin/csh ## Automatically generated from bashrc on $date - DO NOT EDIT EOF | > > > > | > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.2 1999/03/11 04:12:26 peterg ## Put in heading. ## ## Revision 1.1 1999/03/11 04:02:45 peterg ## Initial revision ## ############################################################### echo Converting $1 to $1.csh #Converts mttrc to csh form. date=`date` cat<<EOF >$1.csh #!/bin/csh ## Automatically generated from bashrc on $date - DO NOT EDIT EOF # grep -v lines need to be replaced with proper if...then conversion cat $1 |\ sed 's/export[ \t]*\([A-Za-z0-9_]*\)=/setenv\ \1\ /' |\ sed 's/^\([\ \t]*\)\([A-Za-z0-9_]*\)=/set\ \2=/' |\ grep -v "if \[ -z " |\ grep -v "echo mttrc requires one argument: eg mttrc /usr/share/mtt/latest" |\ grep -v "else" |\ grep -v -e "^fi" \ >>$1.csh echo done. |