HBASE-9446 saveVersion.sh spit pushd: not found popd: not found

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1520440 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-09-05 22:05:17 +00:00
parent 3f9e1e6c8f
commit 5c7d4bb6aa
2 changed files with 4 additions and 3 deletions

View File

@ -84,7 +84,7 @@
<target> <target>
<property name="generated.sources" location="${project.build.directory}/generated-sources"/> <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
<exec executable="sh"> <exec executable="bash">
<arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/> <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/>
</exec> </exec>
</target> </target>

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env bash
# This file is used to generate the annotation of package info that # This file is used to generate the annotation of package info that
# records the user, url, revision and timestamp. # records the user, url, revision and timestamp.
@ -20,10 +20,11 @@
unset LANG unset LANG
unset LC_CTYPE unset LC_CTYPE
version=$1 version=$1
outputDirectory=$2 outputDirectory=$2
pushd pushd .
cd .. cd ..
user=`whoami` user=`whoami`