Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.bin/send-pr Get the information for the "Release" fi...
details: https://anonhg.NetBSD.org/src/rev/381d364c939d
branches: trunk
changeset: 516422:381d364c939d
user: fredb <fredb%NetBSD.org@localhost>
date: Tue Oct 23 14:29:07 2001 +0000
description:
Get the information for the "Release" field via running "uname" on the
host that's doing the filing (with a suitable comment for non-usual
cases), as suggested by Don Yuniskis in PR 14217 and lukem on tech-pkg.
Also closes PR's 13938, 14104.
diffstat:
gnu/usr.bin/send-pr/Makefile | 4 ++--
gnu/usr.bin/send-pr/send-pr.sh | 19 +++++++++++++------
2 files changed, 15 insertions(+), 8 deletions(-)
diffs (62 lines):
diff -r 695f9332ce60 -r 381d364c939d gnu/usr.bin/send-pr/Makefile
--- a/gnu/usr.bin/send-pr/Makefile Tue Oct 23 13:35:10 2001 +0000
+++ b/gnu/usr.bin/send-pr/Makefile Tue Oct 23 14:29:07 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2000/01/23 22:21:26 mycroft Exp $
+# $NetBSD: Makefile,v 1.26 2001/10/23 14:29:07 fredb Exp $
.include <bsd.own.mk>
@@ -22,7 +22,7 @@
GNATS_ADDR = gnats-bugs%gnats.netbsd.org@localhost
# The default release for this send-pr.
-DEFAULT_RELEASE = <NetBSD-current source date>
+DEFAULT_RELEASE = `uname -s` `uname -r`
# The default organization for this send-pr.
DEFAULT_ORGANIZATION =
diff -r 695f9332ce60 -r 381d364c939d gnu/usr.bin/send-pr/send-pr.sh
--- a/gnu/usr.bin/send-pr/send-pr.sh Tue Oct 23 13:35:10 2001 +0000
+++ b/gnu/usr.bin/send-pr/send-pr.sh Tue Oct 23 14:29:07 2001 +0000
@@ -262,8 +262,10 @@
PRIORITY_C='<[ low | medium | high ] (one line)>'
CATEGORY_C='<problem report category - see top for list (one line)>'
CLASS_C='<[ sw-bug | doc-bug | change-request | support ] (one line)>'
-RELEASE_C='<release number or tag (one line)>'
-ENVIRONMENT_C='<machine, os, target, libraries (multiple lines)>'
+RELEASE_C_1='<Please check that the above is correct for the bug being reported,>'
+RELEASE_C_2='<and append source date of snapshot, if applicable (one line).>'
+ENVIRONMENT_C_1='<The following information is extracted from your kernel. Please>'
+ENVIRONMENT_C_2='<append output of "ldd", "ident" where relevant (multiple lines).>'
DESCRIPTION_C='<precise description of the problem (multiple lines)>'
HOW_TO_REPEAT_C='<code/input/activities to reproduce the problem (multiple lines)>'
FIX_C='<how to correct or work around the problem, if known (multiple lines)>'
@@ -363,9 +365,12 @@
>Priority: $PRIORITY_C
>Category: $CATEGORY_C
>Class: $CLASS_C
->Release: ${DEFAULT_RELEASE-$RELEASE_C}
+>Release: ${DEFAULT_RELEASE:-"unreleased"}
+ $RELEASE_C_1
+ $RELEASE_C_2
>Environment:
- $ENVIRONMENT_C
+ $ENVIRONMENT_C_1
+ $ENVIRONMENT_C_2
`[ -n "$SYSTEM" ] && echo System: $SYSTEM`
`[ -n "$ARCH" ] && echo Architecture: $ARCH`
`[ -n "$MACHINE" ] && echo Machine: $MACHINE`
@@ -539,8 +544,10 @@
/^>Priority:/s;<.*>;;
/^>Category:/s;$CATEGORY_C;;
/^>Class:/s;<.*>;;
-/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C;;
-/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C;;
+/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C_1;;
+/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C_2;;
+/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C_1;;
+/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C_2;;
/^>Description:/,/^>[A-Za-z-]*:/s;$DESCRIPTION_C;;
/^>How-To-Repeat:/,/^>[A-Za-z-]*:/s;$HOW_TO_REPEAT_C;;
/^>Fix:/,/^>[A-Za-z-]*:/s;$FIX_C;;
Home |
Main Index |
Thread Index |
Old Index