Debian Bug report logs - #36011
mawk: examples need modifications to work [patch included]

version graph

Package: mawk; Maintainer for mawk is Steve Langasek <vorlon@debian.org>; Source for mawk is src:mawk.

Reported by: edward@hairnet.demon.co.uk

Date: Tue, 13 Apr 1999 17:03:02 UTC

Severity: normal

Found in version 1.3.3-2

Done: James Troup <james@nocrew.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, James Troup <awkmaint@nocrew.org>:
Bug#36011; Package mawk. Full text and rfc822 format available.

Acknowledgement sent to edward@hairnet.demon.co.uk:
New bug report received and forwarded. Copy sent to James Troup <awkmaint@nocrew.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: edward@hairnet.demon.co.uk
To: submit@bugs.debian.org
Subject: mawk: examples need modifications to work [patch included]
Date: Tue, 13 Apr 1999 16:48:33 +0100
Package: mawk
Version: 1.3.3-2

I tried some of the examples in /usr/doc/mawk/examples. They are definatly 
pretty cool. I would even go so far as to suggest you put hical and hcal in
/usr/bin/ although I suppose that man pages would then have to be written.

Here is a patch to modify the examples to get them to run on a standard debian 
system. This is mostly just the addition of bang lines at the beginning, but 
there have been some other modifications.

# This is a patch for old to update it to new.
# It was generated by makepatch 1.93 (2.0BETA) on Tue Apr 13 16:43:01 1999.
#
# To apply this patch, chdir to source directory old and enter
#
#     patch -p1 -N < <this-file>

exit
# End of preamble.

# Patch input follows.
__DATA__
Index: ct_length.awk
####### new/ => new
*** new/ct_length.awk	Tue Apr 13 16:31:29 1999
--- new/ct_length.awk	Tue Apr 13 16:31:56 1999
***************
*** 1,4 ****
! #!/usr/local/bin/mawk -f
  
  #  ct_length.awk
  #
--- 1,4 ----
! #!/usr/bin/mawk -f
  
  #  ct_length.awk
  #
Index: decl.awk
####### new/ => new
*** new/decl.awk	Tue Apr 13 16:31:29 1999
--- new/decl.awk	Tue Apr 13 16:39:03 1999
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/awk -f
  
  # parse a C declaration by recursive descent
  # based on a C program in KR ANSI edition
***************
*** 137,143 ****
      }
  
  }
- 
- 
- 
- 
--- 138,140 ----
Index: deps.awk
####### new/ => new
*** new/deps.awk	Tue Apr 13 16:31:29 1999
--- new/deps.awk	Tue Apr 13 16:41:36 1999
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/mawk -f
  
  # find include dependencies in C source
  #
Index: eatc.awk
####### new/ => new
*** new/eatc.awk	Tue Apr 13 16:31:29 1999
--- new/eatc.awk	Tue Apr 13 16:32:59 1999
***************
*** 1,4 ****
! 
  
  #  eatc.awk
  #  another program to remove comments
--- 1,4 ----
! #!/usr/bin/mawk -f
  
  #  eatc.awk
  #  another program to remove comments
Index: gdecl.awk
####### new/ => new
*** new/gdecl.awk	Tue Apr 13 16:31:29 1999
--- new/gdecl.awk	Tue Apr 13 16:33:18 1999
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/mawk
  
  # parse a C declaration by recursive descent
  # 
***************
*** 130,136 ****
      }
  
  }
- 
- 
- 
- 
--- 131,133 ----
Index: hcal
Prereq:  27 
####### new/ => new
*** new/hcal	Tue Apr 13 16:31:29 1999
--- new/hcal	Tue Apr 13 16:41:51 1999
***************
*** 1,4 ****
! #!/usr/local/bin/mawk -We
  # edit the above to be the full pathname of 'mawk'
  # @(#) hcal - v01.00.02 - Tue Feb 27 21:21:21 EST 1996
  # @(#) prints a 3-month (highlighted) calendar centered on the target month
--- 1,5 ----
! #!/usr/bin/mawk -We
! 
  # edit the above to be the full pathname of 'mawk'
  # @(#) hcal - v01.00.02 - Tue Feb 27 21:21:21 EST 1996
  # @(#) prints a 3-month (highlighted) calendar centered on the target month
***************
*** 414,418 ****
  	if ( ! j ) Get_J()
  	return Get_Num("01/01/0001",m,d,y,j)
  }
- 
- 
--- 415,417 ----
Index: hical
####### new/ => new
*** new/hical	Tue Apr 13 16:31:29 1999
--- new/hical	Tue Apr 13 16:42:41 1999
***************
*** 1,4 ****
! :
  # @(#) hical - displays previous, current & next months - today highlighted
  # @(#) an "internationalizationable" version of a 3-month 'cal' display, it
  # @(#) may be edited for week to start with Sun or Mon & for local language
--- 1,5 ----
! #!/usr/sh
! 
  # @(#) hical - displays previous, current & next months - today highlighted
  # @(#) an "internationalizationable" version of a 3-month 'cal' display, it
  # @(#) may be edited for week to start with Sun or Mon & for local language
***************
*** 19,26 ****
  # the 'awk' program file is written to a temporary file to avoid any
  # "arg list too long" error messages, yet have all the code in one file
  # observe when editing the program file that '\n' must be '\\n'
! # NOTE: for the 'bash' shell on Linux, use 'echo -e' in the next line
! echo '{
  # USER EDITS MAY BE REQUIRED (for FMT, day & month names, and the time stuff)
  # FMT = 0  # for weekdays ordered "Mo Tu We Th Fr Sa Su"
    FMT = 1  # for weekdays ordered "Su Mo Tu We Th Fr Sa"
--- 20,29 ----
  # the 'awk' program file is written to a temporary file to avoid any
  # "arg list too long" error messages, yet have all the code in one file
  # observe when editing the program file that '\n' must be '\\n'
! # NOTE: to make this script portable /bin/echo has been used instead of the 
! #  echo built into the shell for the 'bash' shell on Linux, use 'echo -e' in 
! #  the next line (Modification made by Edward Betts <edward@debian.org>)
! /bin/echo '{
  # USER EDITS MAY BE REQUIRED (for FMT, day & month names, and the time stuff)
  # FMT = 0  # for weekdays ordered "Mo Tu We Th Fr Sa Su"
    FMT = 1  # for weekdays ordered "Su Mo Tu We Th Fr Sa"
Index: nocomment.awk
####### new/ => new
*** new/nocomment.awk	Tue Apr 13 16:31:29 1999
--- new/nocomment.awk	Tue Apr 13 16:37:08 1999
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/mawk -f
  
  # remove C comments  from a list of files
  # using a comment as the record separator
Index: primes.awk
####### new/ => new
*** new/primes.awk	Tue Apr 13 16:31:29 1999
--- new/primes.awk	Tue Apr 13 16:36:39 1999
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/mawk -f
  
  # primes.awk
  #
Index: qsort.awk
####### new/ => new
*** new/qsort.awk	Tue Apr 13 16:31:29 1999
--- new/qsort.awk	Tue Apr 13 16:36:48 1999
***************
*** 1,4 ****
! 
  
  # qsort text files
  #
--- 1,4 ----
! #!/usr/bin/mawk -f
  
  # qsort text files
  #


End of Patch.


-- System Information
Debian Release: potato
Kernel Version: Linux portaloo 2.0.36 #3 Tue Feb 23 16:30:25 GMT 1999 i586 unknown

Versions of the packages mawk depends on:
hi  libc6           2.0.7.19981211 GNU C Library: shared libraries


Reply sent to James Troup <james@nocrew.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to edward@hairnet.demon.co.uk:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 36011-done@bugs.debian.org (full text, mbox):

From: James Troup <james@nocrew.org>
To: 36011-done@bugs.debian.org
Subject: Re: mawk: examples need modifications to work [patch included]
Date: 11 Oct 1999 01:27:56 +0100
edward@hairnet.demon.co.uk writes:

> Package: mawk
> Version: 1.3.3-2
> 
> I tried some of the examples in /usr/doc/mawk/examples. They are definatly
> pretty cool. I would even go so far as to suggest you put hical and hcal in
> /usr/bin/ although I suppose that man pages would then have to be written.
> 
> Here is a patch to modify the examples to get them to run on a standard debian
> system. This is mostly just the addition of bang lines at the beginning, but
> there have been some other modifications.

Patch applied in 1.3.3-3.

-- 
James


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 19:54:10 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.