Changes to system detect for linux

Linux still gives us issues.  Fixed hostname.  Also disabled
CYGWIN detection code -- need to test on a real cygwin system.
This commit is contained in:
2014-01-26 15:17:59 -05:00
parent 116419e81a
commit e5292db977
2 changed files with 12 additions and 5 deletions

View File

@ -11,11 +11,9 @@ endif
# Cygwin systems are kinda funky -- so we fix them up to say "Cygwin"
switch( ${CSHENV_SYSTEM} )
case CYGWIN_NT-6.1-WOW64:
setenv CSHENV_SYSTEM Cygwin
breaksw
endsw
#if( echo ${CSHENV_SYSTEM} | grep -i "cygwin" >& /dev/null ) then
#setenv CSHENV_SYSTEM Cygwin
#endsw
if( $?CSHENV_DEBUG ) then
echo 'Detected that you are running on a "'${CSHENV_SYSTEM}'" system'

View File

@ -124,6 +124,15 @@ switch( ${CSHENV_SYSTEM} )
setenv CSHENV_HOSTNAME `hostname | tr "[:upper:]" "[:lower:]"`
breaksw
#Linux may be different, yet still
case Linux:
if( $?CSHENV_DEBUG ) then
echo "BSD-like hostname hack."
endif
setenv CSHENV_HOSTNAME `hostname | tr "[:upper:]" "[:lower:]"`
breaksw
#BSD like hostnames, and non-broken ones.
default:
if( $?CSHENV_DEBUG ) then