Subject: lib/821: makewhatis.sed thinks it's an sh script
To: None <gnats-admin@NetBSD.ORG>
From: None <jhawk@MIT.EDU>
List: netbsd-bugs
Date: 02/23/1995 02:20:05
>Number:         821
>Category:       lib
>Synopsis:       makewhatis.sed thinks it's an sh script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 23 02:20:03 1995
>Originator:     John Hawkinson
>Organization:
MIT
>Release:        1.0
>Environment:
	
System: NetBSD lola-granola 1.0 NetBSD 1.0 (LOLA-DDB) #69: Tue Feb 14 19:56:56 EST 1995 jhawk@lola-granola:/u1/usr/src/sys/arch/i386/compile/LOLA-DDB i386

It's the same in -current.

>Description:

/usr/src/share/man/makewhatis.sed starts with

	#!/bin/sh -

when it is clearly a sed script :-). It also has the SCCS ID from
4.3net2 (5.5 (Berkeley) 4/17/91), however it is exactly the same
in content as the 4.4lite version (except that 4.4lite fixes
the #!/bin/sh). 

This patch fixes the sharp-bang, adds a $NetBSD$, and updates
the BSD SCCS ID to what was in 4.4lite.

>How-To-Repeat:
>Fix:

*** 1.1	1995/02/23 09:55:31
--- makewhatis.sed	1995/02/23 10:01:32
***************
*** 1,4 ****
! #!/bin/sh -
  #
  # Copyright (c) 1988 The Regents of the University of California.
  # All rights reserved.
--- 1,4 ----
! #!/usr/bin/sed -nf
  #
  # Copyright (c) 1988 The Regents of the University of California.
  # All rights reserved.
***************
*** 31,37 ****
  # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  # SUCH DAMAGE.
  #
! #	@(#)makewhatis.sed	5.5 (Berkeley) 4/17/91
  #
  
  /^[a-zA-Z][a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*/ {
--- 31,39 ----
  # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  # SUCH DAMAGE.
  #
! #	$NetBSD$
! #from:	@(#)makewhatis.sed      8.4 (Berkeley) 4/3/94
! #
  #
  
  /^[a-zA-Z][a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*/ {

>Audit-Trail:
>Unformatted: