Date: Sun, 9 Jul 1995 07:05:01 +0800 (WST) From: Peter Wemm <peter@haywire.DIALix.COM> To: current@freebsd.org Subject: Comments? Message-ID: <Pine.SV4.3.91.950709065844.18757E-100000@haywire.DIALix.COM>
index | next in thread | raw e-mail
When you do a make to build the source from scratch, send-pr isn't
rebuilt to include the new build-date, because send-pr is built once, and
the there are no dependencies to cause it to be remade when the RELEASE
variable changes.
How does this look for a suggested change? I know, it depends on the
user's path, but that can be fixed.. This is a suggestion of a possible
style of change only..
-Peter
(PS: There is a "RELEASE!= uname -rsm" at the top of the Makefile)
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/send-pr/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- 1.6 1995/01/16 17:49:20
+++ Makefile 1995/07/08 22:57:20
@@ -13,11 +13,10 @@
send-pr: send-pr.sh Makefile
sed -e 's,@DATADIR@,/etc,g' \
- -e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
-e 's/^SUBMITTER=.*/SUBMITTER=$(SUBMITTERS)/' \
${.ALLSRC:N*Makefile} > ${.TARGET}
-send-pr.el: send-pr-el.in Makefile
+send-pr.el: send-pr-el.in Makefile /usr/bin/uname
sed -e 's,@DATADIR@,/etc,g' \
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
-e 's/"unknown"/"$(SUBMITTERS)"/g' \
Index: send-pr.sh
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/send-pr/send-pr.sh,v
retrieving revision 1.5
diff -u -r1.5 send-pr.sh
--- 1.5 1994/11/10 02:34:54
+++ send-pr.sh 1995/07/08 22:57:55
@@ -40,7 +40,7 @@
[ ! -d $DATADIR/gnats -a -d "$GCC_EXEC_PREFIX" ] && DATADIR=@DATADIR@
# The default release for this host.
-DEFAULT_RELEASE="@DEFAULT_RELEASE@"
+DEFAULT_RELEASE="`uname -rsm`"
# The default organization.
DEFAULT_ORGANIZATION=
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.91.950709065844.18757E-100000>
