Subject: Re: PKGMANDIR (was Re: CVS commit: pkgsrc/devel/libgphoto2)
To: Jeremy C. Reed <>
From: Todd Vierling <>
List: tech-pkg
Date: 04/27/2004 10:12:21
On Mon, 26 Apr 2004, Jeremy C. Reed wrote:

: And an awk programming question: how can I get slashed ignored so I can
: do the following for print-PLIST target?
: gsub(${PKGMANDIR}\/, "$${PKGMANDIR}/");

Use quotes.  (And use sub instead of gsub, anchoring at the beginning of the
string.  :)

sub("^${PKGMANDIR}/", "$${PKGMANDIR}/");

-- Todd Vierling <> <>