summaryrefslogtreecommitdiffstats
path: root/bin/bbrelease
diff options
context:
space:
mode:
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