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:
@ -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'
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user