Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 15:55:15 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305592 - head/Tools/scripts
Message-ID:  <201210091555.q99FtFfk032496@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Tue Oct  9 15:55:15 2012
New Revision: 305592
URL: http://svn.freebsd.org/changeset/ports/305592

Log:
  Clean-up command-line options.
  
  Approved by:	crees

Modified:
  head/Tools/scripts/addport

Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport	Tue Oct  9 15:26:58 2012	(r305591)
+++ head/Tools/scripts/addport	Tue Oct  9 15:55:15 2012	(r305592)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210091555.q99FtFfk032496>