hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r475912 - /lucene/hadoop/trunk/src/native/packageNativeHadoop.sh
Date Thu, 16 Nov 2006 20:22:07 GMT
Author: cutting
Date: Thu Nov 16 12:22:06 2006
New Revision: 475912

URL: http://svn.apache.org/viewvc?view=rev&rev=475912
Log:
HADOOP-729.  Fix a Solaris-incompatibility in a shell script, so that nightly builds succeed.
 Contributed by Arun.

Modified:
    lucene/hadoop/trunk/src/native/packageNativeHadoop.sh

Modified: lucene/hadoop/trunk/src/native/packageNativeHadoop.sh
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/native/packageNativeHadoop.sh?view=diff&rev=475912&r1=475911&r2=475912
==============================================================================
--- lucene/hadoop/trunk/src/native/packageNativeHadoop.sh (original)
+++ lucene/hadoop/trunk/src/native/packageNativeHadoop.sh Thu Nov 16 12:22:06 2006
@@ -17,11 +17,11 @@
 UNTAR='tar -x'
 
 # Copy the pre-built libraries in $BASE_NATIVE_LIB_DIR
-if test -e $BASE_NATIVE_LIB_DIR
+if [ -d $BASE_NATIVE_LIB_DIR ]
 then
   for platform in `ls $BASE_NATIVE_LIB_DIR`
   do
-    if test ! -e $DIST_LIB_DIR/$platform
+    if [ ! -d $DIST_LIB_DIR/$platform ]
     then
       mkdir -p $DIST_LIB_DIR/$platform
       echo "Created $DIST_LIB_DIR/$platform"
@@ -33,11 +33,11 @@
 fi
 
 # Copy the custom-built libraries in $BUILD_DIR
-if test -e $BUILD_NATIVE_DIR
+if [ -d $BUILD_NATIVE_DIR ]
 then 
   for platform in `ls $BUILD_NATIVE_DIR`
   do
-    if test ! -e $DIST_LIB_DIR/$platform
+    if [ ! -d $DIST_LIB_DIR/$platform ]
     then
       mkdir -p $DIST_LIB_DIR/$platform
       echo "Created $DIST_LIB_DIR/$platform"



Mime
View raw message