Overview
Comment: | Now generates the base path (for csh) as the current wd dir |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4be87b5e0326c03da6bfb69e6be2888b |
User & Date: | gawthrop@users.sourceforge.net on 2001-05-09 08:01:39 |
Other Links: | branch diff | manifest | tags |
Context
2001-05-09
| ||
08:50:02 | Uses _art.fig to transmit the art work to the cbg.fig rep. check-in: d1dc4d0039 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
08:01:39 | Now generates the base path (for csh) as the current wd dir check-in: 4be87b5e03 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2001-05-08
| ||
15:18:12 | Added trig and hyperbolic functions to argument exclusion list check-in: 8e15f969b2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/sh2csh from [cebb90b9e9] to [4b9c1fb401].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/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 ## ############################################################### | > > > > | < > > > > | > | 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 39 40 41 42 43 44 45 46 | #!/bin/sh ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 2001/04/12 03:08:00 geraint ## Improved sh->csh conversion, reduces environment namespace pollution. ## Still need to do proper if [ -z $MTT_BASE ] ... else ... fi conversion. ## ## 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 ## ############################################################### #Converts mttrc to csh form. date=`date` wd=`pwd` base=`dirname $wd` echo Converting $1 to $1.csh using $base as default 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" |\ sed "s%\$1%$base%" \ >>$1.csh echo done. |