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:
parent
3f9e1e6c8f
commit
5c7d4bb6aa
|
@ -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>
|
||||||
|
|
|
@ -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`
|
||||||
|
|
Loading…
Reference in New Issue