From: Lloyd W. <L....@su...> - 2006-08-23 22:24:22
|
Actually, SaVi uses the simpler check if [ -d /cygdrive ]; then so I've committed that to CVS instead. L. At Wednesday 23/08/2006 21:21 +0100, Lloyd Wood wrote: >On cygwin, I get: > >lwood@lwood-wxp01 ~ >$ uname >CYGWIN_NT-5.1 > >lwood@lwood-wxp01 ~ >$ uname -o >Cygwin > >so something unwieldy like: >if test "`uname | grep CYGWIN`"; then > echo "hello Cygwin" >fi > >will work instead. So that is easy to fix. > >L. > > >BTW, one minor error message I noticed when starting up geomview is > >the following: > > > >uname: illegal option -- o > >usage: uname [-amnprsv] > > > >It turns out that Mac OS X's version of uname doesn't have the "-o" > >flag, and this gets triggered in the geomview shell script when > >testing for Cygwin by the following lines: > > > >if test "`uname -o`" = Cygwin; then > > TCL_LIBRARY=/usr/share/tcl8.4 > > TK_LIBRARY=/usr/share/tk8.4 > > export TCL_LIBRARY TK_LIBRARY > >fi > > > >I just commented out these lines to shut it up (since I know I'm not > >running Cygwin), but there's probably a better way to do this that > >works cross-platform. > > > >Thanks again for all the help! > > > >Cheers, > >Ari Stern |