HBASE-9339 Fix saveVersion.sh's GIT awareness.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1517695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-08-26 20:52:12 +00:00
parent d003a429b4
commit cd8e01f1c3
1 changed files with 7 additions and 0 deletions

View File

@ -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/hbase/package-info.java" <<EOF
user="$user", date="$date", url="$url")
package org.apache.hadoop.hbase;
EOF