Date: Thu, 12 Jun 2014 10:20:22 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357581 - head/Keywords Message-ID: <201406121020.s5CAKMLj059591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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" {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406121020.s5CAKMLj059591>