From ea0da550231628a83fa98c1d1487b19d193d038c Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 11 2011 02:56:11 +0000 Subject: Rename ReleaseNotes to Rnotes pre-rendition configuration scripts. --- diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/eula.txt.sh deleted file mode 100755 index 5815208..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/eula.txt.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for EULA in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..2};do - SRC[$INDEX]="=P${INDEX}=" - done - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= EULA"`" - - DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or - warranties of any sorts, either written or implied."`" - - DST[2]="`gettext "The Distribution is released as GPL. Individual - packages in the distribution come with their own licences."`" - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.html.sh deleted file mode 100755 index 587a0ca..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.html.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in HTML format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.txt.sh deleted file mode 100755 index 452cc0a..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/4/release-notes.txt.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/eula.txt.sh deleted file mode 100755 index 5815208..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/eula.txt.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for EULA in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..2};do - SRC[$INDEX]="=P${INDEX}=" - done - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= EULA"`" - - DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or - warranties of any sorts, either written or implied."`" - - DST[2]="`gettext "The Distribution is released as GPL. Individual - packages in the distribution come with their own licences."`" - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.html.sh deleted file mode 100755 index 587a0ca..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.html.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in HTML format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.txt.sh deleted file mode 100755 index 452cc0a..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/5/release-notes.txt.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/eula.txt.sh deleted file mode 100755 index 5815208..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/eula.txt.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for EULA in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..2};do - SRC[$INDEX]="=P${INDEX}=" - done - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= EULA"`" - - DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or - warranties of any sorts, either written or implied."`" - - DST[2]="`gettext "The Distribution is released as GPL. Individual - packages in the distribution come with their own licences."`" - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.html.sh deleted file mode 100755 index 587a0ca..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.html.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in HTML format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.txt.sh deleted file mode 100755 index 452cc0a..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/6/release-notes.txt.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function specifies translation markers -# and replacements for release notes in plain-text format. -# -# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - local INDEX='' - local -a URL - local COUNT=0 - - # Define translation markers. - SRC[0]='=TITLE=' - for INDEX in {1..6};do - SRC[$INDEX]="=P${INDEX}=" - done - SRC[7]='=LOCALE=' - - # Define and build URLs for replacements. - URLS[0]='' - URLS[1]='' - URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' - URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' - URLS[4]='=URL_WIKI=GettingHelp/' - URLS[5]='=URL=' - URLS[6]='=URL_WIKI=Contribute/' - - # Define replacements for translation markers. - DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" - - DST[1]="`gettext "The CentOS project welcomes you to CentOS - =RELEASE=."`" - - DST[2]="`gettext "The complete release notes for CentOS =RELEASE= - can be found online at: =LINK="`" - - DST[3]="`gettext "A list of frequently asked questions and answers - about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" - - DST[4]="`eval_gettext "If you are looking for help with CentOS, we - recommend you start at =LINK= for pointers to the different - sources where you can get help."`" - - DST[5]="`gettext "For more information about The CentOS Project in - general please visit our homepage at: =LINK=."`" - - DST[6]="`gettext "If you would like to contribute to the CentOS - Project, see =LINK= for areas where you could help."`" - - DST[7]="$(cli_getCurrentLocale)" - - # Redefine replacements in order to convert urls into html links. - while [[ $COUNT -lt ${#URLS[*]} ]];do - DST[$COUNT]=$(echo ${DST[$COUNT]} \ - | sed -r "s!=LINK=!${URLS[$COUNT]}!g") - COUNT=$(($COUNT + 1)) - done - -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/render.conf.sh b/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/render.conf.sh deleted file mode 100755 index aa298d7..0000000 --- a/Scripts/Bash/Functions/Render/Config/Manuals/ReleaseNotes/render.conf.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# -# render_loadConfig.sh -- This function defines release pre-rendition -# configuration script. -# -# Copyright (C) 2009-2011 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$ -# ---------------------------------------------------------------------- - -function render_loadConfig { - - # Define rendition actions. - ACTIONS[0]='BASE:renderText' - ACTIONS[1]='POST:formatText: --width=70 --uniform-spacing' - - # Defines matching list. - MATCHINGLIST="\ - release-notes.txt: \ - release-notes.txt.sh - release-notes.html: \ - release-notes.html.sh - eula.txt: \ - eula.txt.sh - " -} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/eula.txt.sh new file mode 100755 index 0000000..5815208 --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/eula.txt.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for EULA in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..2};do + SRC[$INDEX]="=P${INDEX}=" + done + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= EULA"`" + + DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or + warranties of any sorts, either written or implied."`" + + DST[2]="`gettext "The Distribution is released as GPL. Individual + packages in the distribution come with their own licences."`" + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.html.sh new file mode 100755 index 0000000..587a0ca --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.html.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in HTML format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.txt.sh new file mode 100755 index 0000000..452cc0a --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/4/release-notes.txt.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/eula.txt.sh new file mode 100755 index 0000000..5815208 --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/eula.txt.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for EULA in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..2};do + SRC[$INDEX]="=P${INDEX}=" + done + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= EULA"`" + + DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or + warranties of any sorts, either written or implied."`" + + DST[2]="`gettext "The Distribution is released as GPL. Individual + packages in the distribution come with their own licences."`" + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.html.sh new file mode 100755 index 0000000..587a0ca --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.html.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in HTML format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.txt.sh new file mode 100755 index 0000000..452cc0a --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/5/release-notes.txt.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/eula.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/eula.txt.sh new file mode 100755 index 0000000..5815208 --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/eula.txt.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for EULA in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..2};do + SRC[$INDEX]="=P${INDEX}=" + done + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= EULA"`" + + DST[1]="`gettext "CentOS =RELEASE= comes with no guarantees or + warranties of any sorts, either written or implied."`" + + DST[2]="`gettext "The Distribution is released as GPL. Individual + packages in the distribution come with their own licences."`" + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.html.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.html.sh new file mode 100755 index 0000000..587a0ca --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.html.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in HTML format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.txt.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.txt.sh new file mode 100755 index 0000000..452cc0a --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/6/release-notes.txt.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function specifies translation markers +# and replacements for release notes in plain-text format. +# +# Copyright (C) 2009-2011 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: splash.png.sh 963 2011-01-26 17:25:47Z al $ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + local INDEX='' + local -a URL + local COUNT=0 + + # Define translation markers. + SRC[0]='=TITLE=' + for INDEX in {1..6};do + SRC[$INDEX]="=P${INDEX}=" + done + SRC[7]='=LOCALE=' + + # Define and build URLs for replacements. + URLS[0]='' + URLS[1]='' + URLS[2]='=URL_WIKI=Manuals/ReleaseNotes/=RELEASE=/' + URLS[3]='=URL_WIKI=FAQs/=MAJOR_RELEASE=/' + URLS[4]='=URL_WIKI=GettingHelp/' + URLS[5]='=URL=' + URLS[6]='=URL_WIKI=Contribute/' + + # Define replacements for translation markers. + DST[0]="`gettext "CentOS =RELEASE= Release Notes"`" + + DST[1]="`gettext "The CentOS project welcomes you to CentOS + =RELEASE=."`" + + DST[2]="`gettext "The complete release notes for CentOS =RELEASE= + can be found online at: =LINK="`" + + DST[3]="`gettext "A list of frequently asked questions and answers + about CentOS =MAJOR_RELEASE= can be found online at: =LINK="`" + + DST[4]="`eval_gettext "If you are looking for help with CentOS, we + recommend you start at =LINK= for pointers to the different + sources where you can get help."`" + + DST[5]="`gettext "For more information about The CentOS Project in + general please visit our homepage at: =LINK=."`" + + DST[6]="`gettext "If you would like to contribute to the CentOS + Project, see =LINK= for areas where you could help."`" + + DST[7]="$(cli_getCurrentLocale)" + + # Redefine replacements in order to convert urls into html links. + while [[ $COUNT -lt ${#URLS[*]} ]];do + DST[$COUNT]=$(echo ${DST[$COUNT]} \ + | sed -r "s!=LINK=!${URLS[$COUNT]}!g") + COUNT=$(($COUNT + 1)) + done + +} diff --git a/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/render.conf.sh b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/render.conf.sh new file mode 100755 index 0000000..aa298d7 --- /dev/null +++ b/Scripts/Bash/Functions/Render/Config/Manuals/Rnotes/render.conf.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# +# render_loadConfig.sh -- This function defines release pre-rendition +# configuration script. +# +# Copyright (C) 2009-2011 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$ +# ---------------------------------------------------------------------- + +function render_loadConfig { + + # Define rendition actions. + ACTIONS[0]='BASE:renderText' + ACTIONS[1]='POST:formatText: --width=70 --uniform-spacing' + + # Defines matching list. + MATCHINGLIST="\ + release-notes.txt: \ + release-notes.txt.sh + release-notes.html: \ + release-notes.html.sh + eula.txt: \ + eula.txt.sh + " +}