This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFC: fix ARI for version.in change
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 01 Jul 2013 14:30:03 -0600
- Subject: RFC: fix ARI for version.in change
This fixes the ARI code to deal with the version.in change. I thought
I'd sent this before but I couldn't find it in the archives.
Tom
2013-06-25 Tom Tromey <tromey@redhat.com>
* contrib/ari/update-web-ari.sh: Update for version.in change.
diff --git a/gdb/contrib/ari/update-web-ari.sh b/gdb/contrib/ari/update-web-ari.sh
index ee331e4..ffc0c33 100644
--- a/gdb/contrib/ari/update-web-ari.sh
+++ b/gdb/contrib/ari/update-web-ari.sh
@@ -140,8 +140,9 @@ then
echo ERROR: missing version file 1>&2
exit 1
fi
-version=`cat ${version_in}`
+date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/bfd/version.h`
+version=`sed -e "s/DATE/$date/" < ${version_in}`
# THIS HAS SUFFERED BIT ROT
if ${check_warning_p} && test -d "${srcdir}"
--
1.8.1.4