You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/04/26 20:13:29 UTC

svn commit: r164853 - /gump/branches/Gump3/gump

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`