mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
Use git command to get branch name (#1748)
This commit is contained in:
parent
cea0dc4565
commit
01b7165df5
@ -239,7 +239,7 @@ if [ X$revmode = Xyes ]; then
|
||||
# Copy old version of config/lt_vers.am, since it's hard to
|
||||
# "undo" changes to it.
|
||||
cp config/lt_vers.am $tmpdir
|
||||
branch=`git branch | grep '*' | awk '{print $NF}'`
|
||||
branch=`git symbolic-ref -q --short HEAD`
|
||||
revision=`git rev-parse --short HEAD`
|
||||
# Set version information to m.n.r-r$revision.
|
||||
# (h5vers does not correctly handle just m.n.r-$today.)
|
||||
|
Loading…
Reference in New Issue
Block a user