--- pkgsrc/pkgtools/pkgdiff/files/patchdiff.pl 2001/03/31 20:19:04 1.3 +++ pkgsrc/pkgtools/pkgdiff/files/patchdiff.pl 2002/08/14 16:30:07 1.5 @@ -1,6 +1,6 @@ #!@PREFIX@/bin/perl # -# $NetBSD: patchdiff.pl,v 1.3 2001/03/31 20:19:04 skrll Exp $ +# $NetBSD: patchdiff.pl,v 1.5 2002/08/14 16:30:07 seb Exp $ # # patchdiff: compares a set of patches patch-aa, patch-ab, ... in # $WRKDIR/.newpatches in the with another set in patches. @@ -63,9 +63,11 @@ EOF %new=(); $thisdir=cwd(); chomp($thisdir); -$oldpatchdir=$thisdir."/patches"; +$oldpatchdir=`@MAKE@ show-var VARNAME=PATCHDIR` or + die ("can't find PATCHDIR -- wrong dir?"); +chomp($oldpatchdir); -$wrkdir=`make show-var VARNAME=WRKDIR` or +$wrkdir=`@MAKE@ show-var VARNAME=WRKDIR` or die ("can't find WRKDIR -- wrong dir?"); chomp($wrkdir);