This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: fix src-release for version.in move


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]