summaryrefslogtreecommitdiffstats
path: root/bin/bbrelease
diff options
context:
space:
mode:
authorlrknox <lrknox>2016-08-29 21:42:53 (GMT)
committerlrknox <lrknox>2016-08-30 17:17:31 (GMT)
commitfb3ebd7d393505f87b3d1d2a20d33a25ce181e7c (patch)
tree9fd71b0bc50af518595afe022a9202398c74b3f0 /bin/bbrelease
parente90a880864f7a2c765bce1a7648de0adb95230be (diff)
downloadhdf5-fb3ebd7d393505f87b3d1d2a20d33a25ce181e7c.zip
hdf5-fb3ebd7d393505f87b3d1d2a20d33a25ce181e7c.tar.gz
hdf5-fb3ebd7d393505f87b3d1d2a20d33a25ce181e7c.tar.bz2
Translate svn commands to git commands for chkmanifest and bbrelease
scripts with source in git repository. Removed the -p option from the command to run autogen.sh. It interfered with running chkmanifest on a machine with the correct autotools versions but without access to /usr/hdf/bin/AUTOTOOLS. The autogen.sh script says the option is for HDF group use only and is likely to be removed. The same effect can be achieved by adding /usr/hdf/bin/AUTOTOOLS to the beginning of PATH.
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 7dcb535..1fe7d38 100755
--- a/bin/bbrelease
+++ b/bin/bbrelease
@@ -260,9 +260,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