hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject svn commit: r1517694 - /hbase/branches/0.95/hbase-common/src/saveVersion.sh
Date Mon, 26 Aug 2013 20:51:27 GMT
Author: eclark
Date: Mon Aug 26 20:51:27 2013
New Revision: 1517694

URL: http://svn.apache.org/r1517694
Log:
HBASE-9339 Fix saveVersion.sh's GIT awareness.

Modified:
    hbase/branches/0.95/hbase-common/src/saveVersion.sh

Modified: hbase/branches/0.95/hbase-common/src/saveVersion.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-common/src/saveVersion.sh?rev=1517694&r1=1517693&r2=1517694&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-common/src/saveVersion.sh (original)
+++ hbase/branches/0.95/hbase-common/src/saveVersion.sh Mon Aug 26 20:51:27 2013
@@ -22,6 +22,10 @@ unset LANG
 unset LC_CTYPE
 version=$1
 outputDirectory=$2
+
+pushd
+cd ..
+
 user=`whoami`
 date=`date`
 cwd=`pwd`
@@ -36,6 +40,8 @@ else
   revision="Unknown"
   url="file://$cwd"
 fi
+popd
+
 mkdir -p "$outputDirectory/org/apache/hadoop/hbase"
 cat >"$outputDirectory/org/apache/hadoop/hbase/package-info.java" <<EOF
 /*
@@ -45,3 +51,4 @@ cat >"$outputDirectory/org/apache/hadoop
                          user="$user", date="$date", url="$url")
 package org.apache.hadoop.hbase;
 EOF
+



Mime
View raw message