You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by aj...@apache.org on 2005/06/30 22:08:22 UTC

svn commit: r208672 - /gump/trunk/cron/gump.sh

Author: ajack
Date: Thu Jun 30 13:08:21 2005
New Revision: 208672

URL: http://svn.apache.org/viewcvs?rev=208672&view=rev
Log:
On Solaris we are getting "no" as in "no python23 in ..." as the command
to run, i.e. which is use stdout not stderr or something. Anyway, since I
can't think of a portable solution allow setting GUMP_PYTHON to skip this 
check for 'python23' before 'python'.

Modified:
    gump/trunk/cron/gump.sh

Modified: gump/trunk/cron/gump.sh
URL: http://svn.apache.org/viewcvs/gump/trunk/cron/gump.sh?rev=208672&r1=208671&r2=208672&view=diff
==============================================================================
--- gump/trunk/cron/gump.sh (original)
+++ gump/trunk/cron/gump.sh Thu Jun 30 13:08:21 2005
@@ -33,13 +33,15 @@
 	. $HOST_LOCAL_ENV
 fi
 
-export GUMP_PYTHON="`which python2.3`"
 if [ "" == "$GUMP_PYTHON" ] ; then
- export GUMP_PYTHON="`which python`"
- if [ "" == "$GUMP_PYTHON" ] ; then
- 	echo "No Python (python2.3 nor python) found in path."
- 	exit 1
- fi
+  export GUMP_PYTHON="`which python2.3`"
+  if [ "" == "$GUMP_PYTHON" ] ; then
+    export GUMP_PYTHON="`which python`"
+	if [ "" == "$GUMP_PYTHON" ] ; then
+	    echo "No Python (python2.3 nor python) found in path."
+	 	exit 1
+    fi
+  fi
 fi
 
 #



Re: svn commit: r208672 - /gump/trunk/cron/gump.sh

Posted by Leo Simons <ma...@leosimons.com>.
Take a look at the gump script in the Gump3 branch...I'm simply
comparing for "^no ..." as well, IIRC :-)

LSD

ajack@apache.org wrote:
> Author: ajack
> Date: Thu Jun 30 13:08:21 2005
> New Revision: 208672
> 
> URL: http://svn.apache.org/viewcvs?rev=208672&view=rev
> Log:
> On Solaris we are getting "no" as in "no python23 in ..." as the command
> to run, i.e. which is use stdout not stderr or something. Anyway, since I
> can't think of a portable solution allow setting GUMP_PYTHON to skip this 
> check for 'python23' before 'python'.

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org