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]

RFC: fix src-release for version.in move


This fixes src-release for the version.in move.

I tested it by building a gdb release tar.

Let me know what you think.

It is maybe not ideal since it requires the use of GDB_VER at spots,
rather than modifying VER.  However this seemed necessary due to how VER
is written; I think putting the code there would require nested
backquotes.

This patch requires GNU make; but at least gdbint.texinfo says that GNU
make is required here anyhow.

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..4561966 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/common/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)"
 


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