diff options
author | ale <ale@FreeBSD.org> | 2012-10-09 23:55:15 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2012-10-09 23:55:15 +0800 |
commit | 42f0f348d089a4029b627e3f10cef07a20d61506 (patch) | |
tree | 16ed94e499233a7f240c1529090269356e2745fe /Tools/scripts | |
parent | a04bcb61f965a24360b8d86f87368d90975c0bcc (diff) | |
download | freebsd-ports-gnome-42f0f348d089a4029b627e3f10cef07a20d61506.tar.gz freebsd-ports-gnome-42f0f348d089a4029b627e3f10cef07a20d61506.tar.zst freebsd-ports-gnome-42f0f348d089a4029b627e3f10cef07a20d61506.zip |
Clean-up command-line options.
Approved by: crees
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/addport | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 7115344bc6cc..68624cddd906 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -58,7 +58,7 @@ sub lastcomment(); my %opts; -getopts('ac:d:fh:il:L:M:mns:tu:y', \%opts); +getopts('ac:d:fh:il:L:mns:tu:y', \%opts); my $autofill_l = $opts{'l'}; my $autofill_L = $opts{'L'}; @@ -71,7 +71,6 @@ $h = $opts{'h'} if ($opts{'h'} ne ""); my $u = $ENV{USER}; $u = $opts{'u'} if ($opts{'u'} ne ""); my $more_testing = $opts{'t'}; -my $moduleshost = $opts{'M'}; my $interactive = $opts{'i'}; my $nomkdir = $opts{'m'}; my $addlchk = $opts{'a'}; @@ -111,9 +110,6 @@ my $tmp2; my $offset; my $commitfile = ""; my $moved = ""; $tmp = $tmp2 = $offset = 0; -chomp(my $myhost = lc(hostname())); -$moduleshost = $myhost if ($moduleshost eq ""); - # Check the editor. my $edit = "/usr/bin/vi"; $edit = $ENV{EDITOR} if ($ENV{EDITOR} ne ""); @@ -504,8 +500,8 @@ print <<EOF; authors: <will\@FreeBSD.org>, <mharo\@FreeBSD.org> SYNOPSIS - $0 [-c commitfile] [-h host] [-l PR number] [-s distdir] [-u user] - [-abfimnt] -d directory + $0 [-c commitfile] [-h host] [-l PR number | -L PR number] + [-s distdir] [-u user] [-afimnty] -d directory Where "directory" contains the comma-delimited list of root directories of new ports that you wish to |