From 037f472d73e7a22e761cb241c4cb8302245092e6 Mon Sep 17 00:00:00 2001 From: bapt Date: Thu, 12 Jun 2014 10:20:22 +0000 Subject: Cosmetic --- Keywords/pkg_install.awk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Keywords') diff --git a/Keywords/pkg_install.awk b/Keywords/pkg_install.awk index c69f7ebf234d..c08dca962879 100644 --- a/Keywords/pkg_install.awk +++ b/Keywords/pkg_install.awk @@ -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" { -- cgit