incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r711483 - /incubator/hama/trunk/bin/hama
Date Wed, 05 Nov 2008 00:47:08 GMT
Author: edwardyoon
Date: Tue Nov  4 16:47:07 2008
New Revision: 711483

URL: http://svn.apache.org/viewvc?rev=711483&view=rev
Log:
change '~=' operation to use `echo $f | grep 'examples$'`

Modified:
    incubator/hama/trunk/bin/hama

Modified: incubator/hama/trunk/bin/hama
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/bin/hama?rev=711483&r1=711482&r2=711483&view=diff
==============================================================================
--- incubator/hama/trunk/bin/hama (original)
+++ incubator/hama/trunk/bin/hama Tue Nov  4 16:47:07 2008
@@ -118,13 +118,13 @@
   if [ -f $f ]; then
     CLASSPATH=${CLASSPATH}:$f;
   fi
-  if [[ $f =~ "examples.jar$" ]]; then
+  if [[ `echo $f | grep 'examples.jar$'` ]]; then
     HAMA_EXAMPLES_JAR=$f;
   else
-    if [[ $f =~ "test.jar$" ]]; then
+    if [[ `echo $f | grep 'test.jar$'` ]]; then
       HAMA_TEST_JAR=$f;
     else
-      if [[ $f =~ "hama*" ]]; then
+      if [[ `echo $f | grep 'hama*'` ]]; then
         HAMA_JAR=$f;
       fi
     fi
@@ -134,7 +134,7 @@
 # Add libs to CLASSPATH
 for f in $HAMA_HOME/lib/*.jar; do
   CLASSPATH=${CLASSPATH}:$f;
-  if [[ $f =~ "hbase*" ]]; then
+  if [[ `echo $f | grep 'hbase*'` ]]; then
     if [ "$HAMA_JARS" == "" ] ; then
       HAMA_JARS=$f;
     else



Mime
View raw message