You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2008/11/05 01:47:08 UTC
svn commit: r711483 - /incubator/hama/trunk/bin/hama
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