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:
parent
d003a429b4
commit
cd8e01f1c3
|
@ -22,6 +22,10 @@ unset LANG
|
||||||
unset LC_CTYPE
|
unset LC_CTYPE
|
||||||
version=$1
|
version=$1
|
||||||
outputDirectory=$2
|
outputDirectory=$2
|
||||||
|
|
||||||
|
pushd
|
||||||
|
cd ..
|
||||||
|
|
||||||
user=`whoami`
|
user=`whoami`
|
||||||
date=`date`
|
date=`date`
|
||||||
cwd=`pwd`
|
cwd=`pwd`
|
||||||
|
@ -36,6 +40,8 @@ else
|
||||||
revision="Unknown"
|
revision="Unknown"
|
||||||
url="file://$cwd"
|
url="file://$cwd"
|
||||||
fi
|
fi
|
||||||
|
popd
|
||||||
|
|
||||||
mkdir -p "$outputDirectory/org/apache/hadoop/hbase"
|
mkdir -p "$outputDirectory/org/apache/hadoop/hbase"
|
||||||
cat >"$outputDirectory/org/apache/hadoop/hbase/package-info.java" <<EOF
|
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")
|
user="$user", date="$date", url="$url")
|
||||||
package org.apache.hadoop.hbase;
|
package org.apache.hadoop.hbase;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue