This is the mail archive of the gdb-patches@sources.redhat.com 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]

[patch/sim] Allow host to be set


Hello,

The file sim/Makefile.in has mechanisms for auto-generating ChangeLog entries (see sim/README-HACKING). The attached tweaks the make file so that the ChangeLog entry can be customized (one of my machines thinks it is ``localhost'' :-( ).

committed,
Andrew

? diffs
? arm/new-ChangeLog
? common/new-ChangeLog
? d10v/new-ChangeLog
? d30v/new-ChangeLog
? erc32/new-ChangeLog
? fr30/new-ChangeLog
? h8300/new-ChangeLog
? h8500/new-ChangeLog
? i960/new-ChangeLog
? igen/new-ChangeLog
? m32r/new-ChangeLog
? m68hc11/new-ChangeLog
? mcore/new-ChangeLog
? mips/new-ChangeLog
? mn10200/new-ChangeLog
? mn10300/new-ChangeLog
? ppc/new-ChangeLog
? sh/new-ChangeLog
? testsuite/new-ChangeLog
? v850/new-ChangeLog
? w65/new-ChangeLog
? z8k/new-ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/sim/ChangeLog,v
retrieving revision 1.21
diff -u -r1.21 ChangeLog
--- ChangeLog	6 Jun 2002 16:33:45 -0000	1.21
+++ ChangeLog	16 Jun 2002 15:58:24 -0000
@@ -1,3 +1,9 @@
+2002-06-16  Andrew Cagney  <ac131313@redhat.com>
+
+	* Makefile.in (autoconf-changelog autoheader-changelog): Let name,
+	id, date and host to be overriden by NAME, ID, DATE and HOST
+	respectfully.  Use ISO dates.
+
 Thu Jun  6 12:34:13 2002  Andrew Cagney  <cagney@redhat.com>
 
 	* Makefile.in (ChangeLog): New makefile variable.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/sim/Makefile.in,v
retrieving revision 1.2
diff -u -r1.2 Makefile.in
--- Makefile.in	6 Jun 2002 16:33:45 -0000	1.2
+++ Makefile.in	16 Jun 2002 15:58:25 -0000
@@ -224,10 +224,14 @@
 	done
 
 autoconf-changelog autoheader-changelog:
-	id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
-	name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
-	host="`hostname`" ; \
-	date="`date | sed 's/ [^ ]* \([0-9]*\)$$/ \1/'`" ; \
+	id=$(ID) ; \
+	test x$$id = x && id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
+	name=$(NAME) ; \
+	test x$$name = x && name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
+	host=$(HOST) ; \
+	test x$$host = x && host="`hostname`" ; \
+	date=$(DATE) ; \
+	test x$$date = x && date="`date +%Y-%m-%d`" ; \
 	echo "$$date $$name $$id@$$host" ; \
 	for d in * ; \
 	do \

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