This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix src-release for version.in move
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 01 Jul 2013 14:24:55 -0600
- Subject: Re: RFC: fix src-release for version.in move
- References: <87y59yq9zi dot fsf at fleche dot redhat dot com>
Tom> This fixes src-release for the version.in move.
Tom> I tested it by building a gdb release tar.
This is an updated version for the change to move version.in back to the
gdb directory.
Tom
2013-06-25 Tom Tromey <tromey@redhat.com>
* src-release (GDB_VER): New variable.
(gdb-tar, gdb-taz): Use it.
diff --git a/src-release b/src-release
index c388cbe..4657d4f 100644
--- a/src-release
+++ b/src-release
@@ -98,33 +98,36 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
+GDB_VER = $(shell date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$$/\1/p' bfd/version.h`; \
+ sed -e "s/DATE/$$date/" < gdb/version.in)
+
.PHONY: gdb-tar
gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
$(MAKE) -f $(SELF) do-proto-toplev \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
$(MAKE) -f $(SELF) do-md5sum \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
$(MAKE) -f $(SELF) do-djunpack \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
$(MAKE) -f $(SELF) do-tar \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
.PHONY: gdb-taz
gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
$(MAKE) -f $(SELF) gdb-tar \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
$(MAKE) -f $(SELF) do-bz2 \
- TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
+ TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(GDB_VER)" \
MD5PROG="$(MD5PROG)" \
SUPPORT_FILES="$(SUPPORT_FILES)"
--
1.8.1.4