summaryrefslogtreecommitdiff
path: root/pkgtools/port2pkg/files
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/port2pkg/files')
-rwxr-xr-xpkgtools/port2pkg/files/port2pkg.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/port2pkg/files/port2pkg.pl b/pkgtools/port2pkg/files/port2pkg.pl
index 6ea47fb0c29..a0a60ad92fd 100755
--- a/pkgtools/port2pkg/files/port2pkg.pl
+++ b/pkgtools/port2pkg/files/port2pkg.pl
@@ -1,9 +1,10 @@
#!/usr/bin/env perl
#
-# $NetBSD: port2pkg.pl,v 1.20 2012/01/02 12:15:48 joerg Exp $
+# $NetBSD: port2pkg.pl,v 1.21 2013/11/19 10:46:06 tron Exp $
#
-require 'getopts.pl';
+use Getopt::Std;
+
$^W=1;
use strict;
use vars qw($opt_m);
@@ -14,7 +15,7 @@ my($namespace, $portname, $portversion, $distname,
$pkgname, $pkgnameprefix, $pkgnamesuffix);
my(@man, @cat);
-&usage_and_exit() if (! &Getopts('m:'));
+&usage_and_exit() if (! &getopts('m:'));
$|=1;
$portsdir = shift;