From owner-svn-ports-all@FreeBSD.ORG Thu Jun 4 11:37:14 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 407AB9F; Thu, 4 Jun 2015 11:37:14 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 2E7FC1967; Thu, 4 Jun 2015 11:37:14 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t54BbE4d018380; Thu, 4 Jun 2015 11:37:14 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t54BbEtu018379; Thu, 4 Jun 2015 11:37:14 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201506041137.t54BbEtu018379@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 4 Jun 2015 11:37:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r388526 - head/Mk/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-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2015 11:37:14 -0000 Author: amdmi3 Date: Thu Jun 4 11:37:13 2015 New Revision: 388526 URL: https://svnweb.freebsd.org/changeset/ports/388526 Log: - Add blacklist of files which are not intended to be executed to shebang test - Sort shebang list Differential Revision: D2670 Submitted by: amdmi3 Approved by: portmgr (bapt) Modified: head/Mk/Scripts/qa.sh Modified: head/Mk/Scripts/qa.sh ============================================================================== --- head/Mk/Scripts/qa.sh Thu Jun 4 11:29:47 2015 (r388525) +++ head/Mk/Scripts/qa.sh Thu Jun 4 11:37:13 2015 (r388526) @@ -23,19 +23,27 @@ shebangonefile() { f="$@" rc=0 + + # blacklist of files which are not intended to be runnable + case "${f##*/}" in + *.pm|*.pod|*.txt) + return 0 + ;; + esac + interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' "$f") case "$interp" in "") ;; - /usr/bin/env) ;; ${LINUXBASE}/*) ;; ${LOCALBASE}/*) ;; ${PREFIX}/*) ;; - /usr/bin/awk) ;; - /usr/bin/sed) ;; - /usr/bin/nawk) ;; /bin/csh) ;; /bin/sh) ;; /bin/tcsh) ;; + /usr/bin/awk) ;; + /usr/bin/env) ;; + /usr/bin/nawk) ;; + /usr/bin/sed) ;; *) err "'${interp}' is an invalid shebang you need USES=shebangfix for '${f#${STAGEDIR}${PREFIX}/}'" rc=1