incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1196203 - /incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh
Date Tue, 01 Nov 2011 18:51:42 GMT
Author: rvs
Date: Tue Nov  1 18:51:41 2011
New Revision: 1196203

URL: http://svn.apache.org/viewvc?rev=1196203&view=rev
Log:
Fixing symbolic linking to the versioned jars

Modified:
    incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh

Modified: incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh?rev=1196203&r1=1196202&r2=1196203&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh
(original)
+++ incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/install_hadoop.sh
Tue Nov  1 18:51:41 2011
@@ -185,16 +185,14 @@ install -d -m 0755 $ETC_DIR/conf.empty
 # packages can depend on
 (cd $LIB_DIR &&
 for j in hadoop-*.jar; do
-  if [[ $j =~ hadoop-([^-]+)-([^-]+)-([0-9].*)-sources.jar ]]; then
-    comp=${BASH_REMATCH[1]}
-    name=${BASH_REMATCH[2]}
-    vers=${BASH_REMATCH[3]}
-    ln -s hadoop-$comp-$name-$vers-sources.jar hadoop-$comp-$name-sources.jar
-  elif [[ $j =~ hadoop-([^-]+)-([^-]+)-([0-9].*).jar ]]; then
-    comp=${BASH_REMATCH[1]}
-    name=${BASH_REMATCH[2]}
-    vers=${BASH_REMATCH[3]}
-    ln -s hadoop-$comp-$name-$vers.jar hadoop-$comp-$name.jar
+  if [[ $j =~ hadoop-(.+)-([0-9].*)-sources.jar ]]; then
+    name=${BASH_REMATCH[1]}
+    vers=${BASH_REMATCH[2]}
+    ln -s hadoop-$name-$vers-sources.jar hadoop-$name-sources.jar
+  elif [[ $j =~ hadoop-(.+)-([0-9].*).jar ]]; then
+    name=${BASH_REMATCH[1]}
+    vers=${BASH_REMATCH[2]}
+    ln -s hadoop-$name-$vers.jar hadoop-$name.jar
   fi
 done)
 



Mime
View raw message