Subject: Re: OK to put `uname -r` in "Release:" field of "send-pr"?
To: Robert Elz <kre@munnari.OZ.AU>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-userlevel
Date: 10/19/2001 10:14:29
On Fri, 19 Oct 2001, Robert Elz wrote:
> | Perhaps, then, you would remember to change it.
>
> Yes, I try to fix all of that kind of thing. But it isn't always
> easy to remember to fix the boring bits, when what is of most
> interest is the subject of the bug/fix...
I agree. So let's wrap this up. ;-)
The following patches incorporate lukem's suggestions. Notice that the
template text is cleverly generic ("snapshot" could mean anything), so
as not to spoil "send-pr" for other uses. Comments?
Frederick
Index: Makefile
===================================================================
RCS file: /cvsroot/gnusrc/gnu/usr.bin/send-pr/Makefile,v
retrieving revision 1.25
diff -c -r1.25 Makefile
*** Makefile 2000/01/23 22:21:26 1.25
--- Makefile 2001/10/19 15:13:19
***************
*** 22,28 ****
GNATS_ADDR = gnats-bugs@gnats.netbsd.org
# The default release for this send-pr.
! DEFAULT_RELEASE = <NetBSD-current source date>
# The default organization for this send-pr.
DEFAULT_ORGANIZATION =
--- 22,28 ----
GNATS_ADDR = gnats-bugs@gnats.netbsd.org
# The default release for this send-pr.
! DEFAULT_RELEASE = `uname -s` `uname -r`
# The default organization for this send-pr.
DEFAULT_ORGANIZATION =
Index: send-pr.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/usr.bin/send-pr/send-pr.sh,v
retrieving revision 1.19
diff -c -r1.19 send-pr.sh
*** send-pr.sh 2000/11/06 15:46:38 1.19
--- send-pr.sh 2001/10/19 15:13:21
***************
*** 262,269 ****
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)>'
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)>'
--- 262,271 ----
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_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,371 ****
>Priority: $PRIORITY_C
>Category: $CATEGORY_C
>Class: $CLASS_C
! >Release: ${DEFAULT_RELEASE-$RELEASE_C}
>Environment:
! $ENVIRONMENT_C
`[ -n "$SYSTEM" ] && echo System: $SYSTEM`
`[ -n "$ARCH" ] && echo Architecture: $ARCH`
`[ -n "$MACHINE" ] && echo Machine: $MACHINE`
--- 365,376 ----
>Priority: $PRIORITY_C
>Category: $CATEGORY_C
>Class: $CLASS_C
! >Release: ${DEFAULT_RELEASE:-"unreleased"}
! $RELEASE_C_1
! $RELEASE_C_2
>Environment:
! $ENVIRONMENT_C_1
! $ENVIRONMENT_C_2
`[ -n "$SYSTEM" ] && echo System: $SYSTEM`
`[ -n "$ARCH" ] && echo Architecture: $ARCH`
`[ -n "$MACHINE" ] && echo Machine: $MACHINE`
***************
*** 539,546 ****
/^>Priority:/s;<.*>;;
/^>Category:/s;$CATEGORY_C;;
/^>Class:/s;<.*>;;
! /^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C;;
! /^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C;;
/^>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;;
--- 544,553 ----
/^>Priority:/s;<.*>;;
/^>Category:/s;$CATEGORY_C;;
/^>Class:/s;<.*>;;
! /^>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;;