diff options
author | lrknox <lrknox> | 2016-08-29 21:42:53 (GMT) |
---|---|---|
committer | lrknox <lrknox> | 2016-08-29 21:42:53 (GMT) |
commit | ba5652ffc27be96fa7275b039ce2c8e249751657 (patch) | |
tree | 3434dc6d6bd042f4902a8d127ea8f78942c1557c /bin/bbrelease | |
parent | b947f7e911e498f5455a78836a6f82a042dd5b33 (diff) | |
download | hdf5-ba5652ffc27be96fa7275b039ce2c8e249751657.zip hdf5-ba5652ffc27be96fa7275b039ce2c8e249751657.tar.gz hdf5-ba5652ffc27be96fa7275b039ce2c8e249751657.tar.bz2 |
Translate svn commands to git commands for chkmanifest and bbrelease
scripts with source in git repository.
Diffstat (limited to 'bin/bbrelease')
-rwxr-xr-x | bin/bbrelease | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/bbrelease b/bin/bbrelease index cb79528..d81929b 100755 --- a/bin/bbrelease +++ b/bin/bbrelease @@ -268,9 +268,11 @@ 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=`svn info | grep ^URL: | awk -F/ '{print $NF}'` - revision=`svn info | grep "Revision:" | awk '{print $2}'` - # Set version information to m.n.r-r$revision. +#branch=`svn info | grep ^URL: | awk -F/ '{print $NF}'` +#revision=`svn info | grep "Revision:" | awk '{print $2}'` + branch=`git branch | awk '{print $2}'` + revision=`git rev-parse HEAD` +# Set version information to m.n.r-r$revision. # (h5vers does not correctly handle just m.n.r-$today.) VERS=`echo $VERS | sed -e s/-.*//`-r$revision echo Private release of $VERS |