From owner-svn-ports-head@freebsd.org Fri Nov 10 11:59:29 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C38AE6B767; Fri, 10 Nov 2017 11:59:29 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55FBB70354; Fri, 10 Nov 2017 11:59:29 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAABxSe8062751; Fri, 10 Nov 2017 11:59:28 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAABxS2d062750; Fri, 10 Nov 2017 11:59:28 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201711101159.vAABxS2d062750@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Fri, 10 Nov 2017 11:59:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453895 - head/Tools/scripts X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/Tools/scripts X-SVN-Commit-Revision: 453895 X-SVN-Commit-Repository: ports 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.23 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: Fri, 10 Nov 2017 11:59:29 -0000 Author: mat Date: Fri Nov 10 11:59:28 2017 New Revision: 453895 URL: https://svnweb.freebsd.org/changeset/ports/453895 Log: Cleanup resurrected processing. There is no need to have a resurrected array, it is only used once, so move the resurrected printf where it belongs. Sponsored by: Absolight Modified: head/Tools/scripts/MOVEDlint.awk Modified: head/Tools/scripts/MOVEDlint.awk ============================================================================== --- head/Tools/scripts/MOVEDlint.awk Fri Nov 10 11:59:25 2017 (r453894) +++ head/Tools/scripts/MOVEDlint.awk Fri Nov 10 11:59:28 2017 (r453895) @@ -83,14 +83,12 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ { if (system("test -f " portsdir "/" $1 "/Makefile")) { delete missing[$1] } else { - resurrected[$1] = NR + printf "%5d: %s must be marked as resurrected\n", NR, port | sort } if ($2) { if (system("test -f " portsdir "/" $2 "/Makefile")) missing[$2] = NR -# else -# delete resurrected[$2] } # Produces too many false positives @@ -106,10 +104,6 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ { } END { - for (port in resurrected) { - printf "%5d: %s must be marked as resurrected\n", resurrected[port], port | sort - } - for (port in missing) { printf "%5d: %s not found\n", missing[port], port | sort error[missing[port]] = 1