summaryrefslogtreecommitdiff
path: root/pkgtools/revbump/files/check-cvs-diff
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/revbump/files/check-cvs-diff')
-rw-r--r--pkgtools/revbump/files/check-cvs-diff7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgtools/revbump/files/check-cvs-diff b/pkgtools/revbump/files/check-cvs-diff
index 417af7a41ba..46365c44c47 100644
--- a/pkgtools/revbump/files/check-cvs-diff
+++ b/pkgtools/revbump/files/check-cvs-diff
@@ -34,12 +34,17 @@ HELP
}
sub main() {
- my ($PKGSRCDIR) = '/usr/pkgsrc';
+ my ($PKGSRCDIR);
my ($CVS_DIFF) = 'cvs-diff';
my ($file_to_edit);
my ($stay, $mod) = (0,0);
my ($Makefile, $buildlink3, $other) = (0, 0, 0);
+ $PKGSRCDIR = $ENV{PKGSRCDIR};
+ if (! $PKGSRCDIR) {
+ $PKGSRCDIR = "/usr/pkgsrc";
+ }
+
getopts('hvp:',\%opts);
if ($ARGV[0]) { $CVS_DIFF = $ARGV[0]}
if ($opts{'p'}) { $PKGSRCDIR = $opts{'p'}; }