gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r164853 - /gump/branches/Gump3/gump
Date Tue, 26 Apr 2005 18:13:29 GMT
Author: leosimons
Date: Tue Apr 26 11:13:29 2005
New Revision: 164853

URL: http://svn.apache.org/viewcvs?rev=164853&view=rev
Log:
Hostname -s has bad results on Sun.

gump: don't use the 'short' flag on solaris when determining the hostname.

Modified:
    gump/branches/Gump3/gump

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?rev=164853&r1=164852&r2=164853&view=diff
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Tue Apr 26 11:13:29 2005
@@ -237,18 +237,20 @@
   if [[ ! -z "$GUMP_HOSTNAME" ]]; then
     return
   fi
-  
+
   local hostnamecommand=`which hostname`
   if [[ -z "$hostnamecommand" || "$hostnamecommand" == "no*" ]]; then
     error "GUMP_HOSTNAME is not set and the hostname command is not
 available to determine it!"
   fi
   
-  local cygwin="no";
+  local no_s_flag="no";
   case "`uname`" in
-    CYGWIN*) cygwin="yes" ;;
+    CYGWIN*) no_s_flag="yes" ;;
+    Sun*) no_s_flag="yes" ;;
   esac
-  if [[ "x$cygwin" == "xyes" ]]; then
+
+  if [[ "x$no_s_flag" == "xyes" ]]; then
     export GUMP_HOSTNAME=`hostname`
   else
     export GUMP_HOSTNAME=`hostname -s`



Mime
View raw message