diff --git a/Scripts/Bash/Functions/Render/Config/Translations/Identity/Brands/render.conf.sh b/Scripts/Bash/Functions/Render/Config/Translations/Identity/Brands/render.conf.sh index cc31cf2..094fbbc 100755 --- a/Scripts/Bash/Functions/Render/Config/Translations/Identity/Brands/render.conf.sh +++ b/Scripts/Bash/Functions/Render/Config/Translations/Identity/Brands/render.conf.sh @@ -147,5 +147,5 @@ function render_loadConfig { done done \ - | awk -f /home/centos/artwork/trunk/Scripts/Bash/Style/output_forRendering.awk + | awk -f /home/centos/artwork/trunk/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk } diff --git a/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk b/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk new file mode 100644 index 0000000..208e3dc --- /dev/null +++ b/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk @@ -0,0 +1,37 @@ +#!/usr/bin/gawk +# +# output_forRendering.awk -- This file provides the output format for +# all rendering actions inside centos-art.sh script. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +BEGIN { FS=": " } + +{ + if ( $0 ~ /^-+$/ ) + print $0 + else + printf "%-15s\t%s\n", $1, $2 + +} + +END {} diff --git a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh index bb87912..cb5118b 100644 --- a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh @@ -130,8 +130,8 @@ function render_doIdentityImages { echo '----------------------------------------------------------------------' - done \ - | awk -f /home/centos/artwork/trunk/Scripts/Bash/Style/output_forRendering.awk + done \ + | awk -f /home/centos/artwork/trunk/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk # Execute post-rendering actions. for ACTION in "${LASTACTIONS[@]}"; do diff --git a/Scripts/Bash/Functions/Render/render_doIdentityTexts.sh b/Scripts/Bash/Functions/Render/render_doIdentityTexts.sh index ad97791..309b0a6 100644 --- a/Scripts/Bash/Functions/Render/render_doIdentityTexts.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityTexts.sh @@ -58,7 +58,7 @@ function render_doIdentityTexts { echo '----------------------------------------------------------------------' done \ - | awk -f /home/centos/artwork/trunk/Scripts/Bash/Style/output_forRendering.awk + | awk -f /home/centos/artwork/trunk/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk # Execute last-rendering actions. #for ACTION in "${LASTACTIONS[@]}"; do diff --git a/Scripts/Bash/Functions/Render/render_getActionsTranslations.sh b/Scripts/Bash/Functions/Render/render_getActionsTranslations.sh index b024105..1354738 100755 --- a/Scripts/Bash/Functions/Render/render_getActionsTranslations.sh +++ b/Scripts/Bash/Functions/Render/render_getActionsTranslations.sh @@ -187,5 +187,5 @@ function render_getActionsTranslations { done done \ - | awk -f /home/centos/artwork/trunk/Scripts/Bash/Style/output_forRendering.awk + | awk -f /home/centos/artwork/trunk/Scripts/Bash/Functions/Render/Styles/output_forRendering.awk } diff --git a/Scripts/Bash/Style/output_forRendering.awk b/Scripts/Bash/Style/output_forRendering.awk deleted file mode 100644 index 208e3dc..0000000 --- a/Scripts/Bash/Style/output_forRendering.awk +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/gawk -# -# output_forRendering.awk -- This file provides the output format for -# all rendering actions inside centos-art.sh script. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -BEGIN { FS=": " } - -{ - if ( $0 ~ /^-+$/ ) - print $0 - else - printf "%-15s\t%s\n", $1, $2 - -} - -END {}