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"
|
# Cygwin systems are kinda funky -- so we fix them up to say "Cygwin"
|
||||||
switch( ${CSHENV_SYSTEM} )
|
#if( echo ${CSHENV_SYSTEM} | grep -i "cygwin" >& /dev/null ) then
|
||||||
case CYGWIN_NT-6.1-WOW64:
|
#setenv CSHENV_SYSTEM Cygwin
|
||||||
setenv CSHENV_SYSTEM Cygwin
|
#endsw
|
||||||
breaksw
|
|
||||||
endsw
|
|
||||||
|
|
||||||
if( $?CSHENV_DEBUG ) then
|
if( $?CSHENV_DEBUG ) then
|
||||||
echo 'Detected that you are running on a "'${CSHENV_SYSTEM}'" system'
|
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:]"`
|
setenv CSHENV_HOSTNAME `hostname | tr "[:upper:]" "[:lower:]"`
|
||||||
breaksw
|
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.
|
#BSD like hostnames, and non-broken ones.
|
||||||
default:
|
default:
|
||||||
if( $?CSHENV_DEBUG ) then
|
if( $?CSHENV_DEBUG ) then
|
||||||
|
Reference in New Issue
Block a user