Subject: regular expressions for _PLIST_AWK_*MAN* and cat pages
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/05/2004 15:09:15
The regular expressions for _PLIST_AWK_*MAN* segments assume that
cat[1-9ln] pages end in .0 but packages like net/tnftp install
man/cat1/ftp.1.

Other examples are

man/cat1/elvis.1

man/cat8/sudo.8

man/cat1/ssh-keyscan.1

man/cat3/fltk.3

Is it okay if I change the end expression for the cat part to match to
[0-9] or maybe [0-9ln] ??

This would be for any regular expression matching
 cat[1-9ln]/.*\.0$
to
 cat[1-9ln]/.*\.[0-9ln]$

(I noticed this because I added a new awk segment for converting man/ to
${PKGMANDIR} in my PLISTs and I wanted to make sure that the MANZ still
worked.)

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/