summaryrefslogtreecommitdiffstats
path: root/bin/bbrelease
diff options
context:
space:
mode:
authorlrknox <lrknox>2016-08-29 21:42:53 (GMT)
committerlrknox <lrknox>2016-08-29 21:42:53 (GMT)
commitba5652ffc27be96fa7275b039ce2c8e249751657 (patch)
tree3434dc6d6bd042f4902a8d127ea8f78942c1557c /bin/bbrelease
parentb947f7e911e498f5455a78836a6f82a042dd5b33 (diff)
downloadhdf5-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-xbin/bbrelease8
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