From owner-svn-ports-head@FreeBSD.ORG Thu Jun 12 10:20:22 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5D9BB4A; Thu, 12 Jun 2014 10:20:22 +0000 (UTC) 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 C2C7829BC; Thu, 12 Jun 2014 10:20:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5CAKMPn059592; Thu, 12 Jun 2014 10:20:22 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5CAKMLj059591; Thu, 12 Jun 2014 10:20:22 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201406121020.s5CAKMLj059591@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 12 Jun 2014 10:20:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357581 - head/Keywords 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.18 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: Thu, 12 Jun 2014 10:20:22 -0000 Author: bapt Date: Thu Jun 12 10:20:22 2014 New Revision: 357581 URL: http://svnweb.freebsd.org/changeset/ports/357581 QAT: https://qat.redports.org/buildarchive/r357581/ Log: Cosmetic Modified: head/Keywords/pkg_install.awk Modified: head/Keywords/pkg_install.awk ============================================================================== --- head/Keywords/pkg_install.awk Thu Jun 12 10:11:23 2014 (r357580) +++ head/Keywords/pkg_install.awk Thu Jun 12 10:20:22 2014 (r357581) @@ -23,15 +23,15 @@ # @comment end @shell bin/shell $1 == "@sample" { - sample_file=$2 - # Take out .sample - target_file=substr(sample_file, 0, length(sample_file) - 7) - print "@comment begin " $0 - print "@unexec if cmp -s '%D/" target_file "' '%D/" sample_file "'; then rm -f '%D/" target_file "'; fi" - print sample_file - print "@exec if ! [ -f '%D/" target_file "' ]; then /bin/cp -p '%D/" sample_file "' '%D/" target_file "'; fi" - print "@comment end " $0 - next + sample_file=$2 + # Take out .sample + target_file=substr(sample_file, 0, length(sample_file) - 7) + print "@comment begin " $0 + print "@unexec if cmp -s '%D/" target_file "' '%D/" sample_file "'; then rm -f '%D/" target_file "'; fi" + print sample_file + print "@exec if ! [ -f '%D/" target_file "' ]; then /bin/cp -p '%D/" sample_file "' '%D/" target_file "'; fi" + print "@comment end " $0 + next } $1 == "@shell" {