From owner-svn-ports-head@FreeBSD.ORG Tue Oct 9 15:55:15 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1BEBA45; Tue, 9 Oct 2012 15:55:15 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 89EEF8FC08; Tue, 9 Oct 2012 15:55:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q99FtFHa032498; Tue, 9 Oct 2012 15:55:15 GMT (envelope-from ale@svn.freebsd.org) Received: (from ale@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q99FtFfk032496; Tue, 9 Oct 2012 15:55:15 GMT (envelope-from ale@svn.freebsd.org) Message-Id: <201210091555.q99FtFfk032496@svn.freebsd.org> From: Alex Dupre Date: Tue, 9 Oct 2012 15:55:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305592 - head/Tools/scripts X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 15:55:15 -0000 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 <, 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