This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/2] fix ARI for git migration
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Tue, 17 Sep 2013 11:49:39 -0600
- Subject: [PATCH 2/2] fix ARI for git migration
- Authentication-results: sourceware.org; auth=none
- References: <1379440179-8743-1-git-send-email-tromey at redhat dot com>
This fixes the ARI script for the git migration.
* contrib/ari/create-web-ari-in-src.sh: Update for git.
---
gdb/contrib/ari/create-web-ari-in-src.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gdb/contrib/ari/create-web-ari-in-src.sh b/gdb/contrib/ari/create-web-ari-in-src.sh
index 2d9c588..7f0c423 100644
--- a/gdb/contrib/ari/create-web-ari-in-src.sh
+++ b/gdb/contrib/ari/create-web-ari-in-src.sh
@@ -55,6 +55,11 @@ if [ -z "${webdir}" ] ; then
# Use 'branch' subdir name if Tag contains branch
if [ -f "${srcdir}/gdb/CVS/Tag" ] ; then
tagname=`cat "${srcdir}/gdb/CVS/Tag"`
+ elif [ -d "${srcdir}/.git" ] ; then
+ tagname=`cd ${srcdir} && git rev-parse --abbrev-ref HEAD`
+ if test "$tagname" = "master"; then
+ tagname=trunk
+ fi
else
tagname=trunk
fi
--
1.8.1.4