From ae711e5e0f0365c0ff0ee008c450880a00f86614 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 07 2011 19:26:08 +0000 Subject: Update `identity' functionality: - Remove pre-rendition configuration scripts inside Config directory. The Config directory directory, if fact, was completly removed from trunk/Scripts/Bash/Cli/Functions/Identity dirctory structure. - Different rendition styles are available through the following command-line options: --syslinux To produce 16 color images and convert them into lss format. --grub To produce 14 color images and convert them into xpm.gz format. --gdm, --kdm To produce gdm and kdm tar.gz files respectively. --ksplash To produce ksplash images. Special feature here is creation of a Preview image from three other images through ImageMagick tool set. --format To convert PNG images to different formats using ImageMagick. --groupt-by-type To organize similar files inside the same directory. For exmaple, png files are stored in a Png/ directory, jpg files are stored in a Jpg/ directory and so on. --- diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Brands/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Brands/render.conf.sh deleted file mode 100755 index 9dad3a9..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Brands/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines brands 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='LAST:renderBrands' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Fonts/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Fonts/render.conf.sh deleted file mode 100755 index b927151..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Fonts/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines fonts 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderFormats: jpg pdf' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Models/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Models/render.conf.sh deleted file mode 100755 index f56cc8f..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Models/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines models 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderFormats: pdf jpg' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Backgrounds/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Backgrounds/render.conf.sh deleted file mode 100755 index 4046ad6..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Backgrounds/render.conf.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines themes backgrounds -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderFormats: jpg' - ACTIONS[1]='POST:groupByType: png jpg' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Concept/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Concept/render.conf.sh deleted file mode 100755 index 45669e1..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Concept/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines theme info -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderFormats: jpg pdf' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Anaconda/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Anaconda/render.conf.sh deleted file mode 100755 index a93fe9c..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Anaconda/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines Anaconda 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Firstboot/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Firstboot/render.conf.sh deleted file mode 100755 index a1724c9..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Firstboot/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines firstboot -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gdm/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gdm/render.conf.sh deleted file mode 100755 index f280e46..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gdm/render.conf.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines GNOME display manager -# (GDM) 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]="LAST:renderDm:Gdm:800x600 1024x768 1280x1024 1360x768 \ - 1680x1050 2048x1536 2560x960 2560x1240 3271x1227" - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Grub/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Grub/render.conf.sh deleted file mode 100755 index 4572333..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Grub/render.conf.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines GRUB 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderGrub:' - ACTIONS[1]='POST:renderGrub:-floyd' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gsplash/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gsplash/render.conf.sh deleted file mode 100755 index 1cec9de..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Gsplash/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines GSplash 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Kdm/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Kdm/render.conf.sh deleted file mode 100755 index 5971419..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Kdm/render.conf.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines KDE display manager -# (KDM) 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]="LAST:renderDm:Kdm:800x600 1024x768 1280x1024 1360x768 \ - 1680x1050 2048x1536 2560x960 2560x1240 3271x1227" - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Ksplash/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Ksplash/render.conf.sh deleted file mode 100755 index 24fe8b4..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Ksplash/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines KSplash 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='LAST:renderKSplash' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Rhgb/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Rhgb/render.conf.sh deleted file mode 100755 index 3125fb2..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Rhgb/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines graphical boot (RHGB) -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Syslinux/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Syslinux/render.conf.sh deleted file mode 100755 index 955eb57..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Distro/5/Syslinux/render.conf.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines Syslinux 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderSyslinux:' - ACTIONS[1]='POST:renderSyslinux:-floyd' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Releases/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Releases/render.conf.sh deleted file mode 100755 index de304c3..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Releases/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines release promotion -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Media/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Media/render.conf.sh deleted file mode 100755 index f64ad09..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Media/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines installation media -# promotion 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - #ACTIONS[0]='' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Posters/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Posters/render.conf.sh deleted file mode 100755 index d9c610a..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Themes/Promo/Stationery/Posters/render.conf.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines posters promotion -# 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 identity_loadConfig { - - # Deifne theme model. - #FLAG_THEME_MODEL='Default' - - # Define rendition actions. - ACTIONS[0]='POST:renderFormats: pdf jpg' - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Widgets/render.conf.sh b/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Widgets/render.conf.sh deleted file mode 100755 index 4f52452..0000000 --- a/Scripts/Bash/Cli/Functions/Identity/Config/Identity/Widgets/render.conf.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# identity_loadConfig.sh -- This function defines widgets 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 identity_loadConfig { - - return - -} diff --git a/Scripts/Bash/Cli/Functions/Identity/identity_getActions.sh b/Scripts/Bash/Cli/Functions/Identity/identity_getActions.sh index 3365a65..9aff109 100644 --- a/Scripts/Bash/Cli/Functions/Identity/identity_getActions.sh +++ b/Scripts/Bash/Cli/Functions/Identity/identity_getActions.sh @@ -26,11 +26,16 @@ function identity_getActions { + # Initialize actions array variable, the place used to + # to store post-rendition and last-rendition action definitions + # retrived from command-line interface. + local -a ACTIONS + # Define short options we want to support. local ARGSS="" # Define long options we want to support. - local ARGSL="render:,release:,architecture:,copy:,to:" + local ARGSL="render:,release:,architecture:,copy:,to:,syslinux,grub,gdm,kdm,ksplash,format:,group-by-type:" # Parse arguments using getopt(1) command parser. cli_doParseArguments @@ -45,65 +50,74 @@ function identity_getActions { case "$1" in --render ) - - # Redefine action name. ACTIONNAM="${FUNCNAM}_render" - - # Redefine action value. ACTIONVAL="$2" - - # Rotate positional parameters shift 2 ;; --copy ) - - # Redefine action value variable. ACTIONVAL="$2" - - # Redefine action name variable. ACTIONNAM="${FUNCNAME}_doCopy" - - # Rotate positional parameters shift 2 ;; --release ) - - # Redefine release number flag. FLAG_RELEASE="$2" - - # Verify release number flag. if [[ ! $FLAG_RELEASE =~ $(cli_getPathComponent '--release-pattern') ]];then cli_printMessage "`gettext "The release number provided is not supported."`" 'AsErrorLine' cli_printMessage "$(caller)" 'AsToKnowMoreLine' fi - - # Rotate positional parameters shift 2 ;; --architecture ) - - # Redefine architecture flag. FLAG_ARCHITECTURE="$2" - - # Verify architecture flag. if [[ ! $FLAG_ARCHITECTURE =~ $(cli_getPathComponent '--architecture-pattern') ]];then cli_printMessage "`gettext "The architecture provided is not supported."`" 'AsErrorLine' cli_printMessage "$(caller)" 'AsToKnowMoreLine' fi - - # Rotate positional parameters shift 2 ;; --to ) - - # Redefine target value flag. FLAG_TO="$2" + shift 2 + ;; + + --syslinux ) + ACTIONS[$((${#ACTIONS[*]} + 1))]='POST:renderSyslinux:' + ACTIONS[$((${#ACTIONS[*]} + 1))]='POST:renderSyslinux:-floyd' + shift 1 + ;; - # Rotate positional parameters + --grub ) + ACTIONS[$((${#ACTIONS[*]} + 1))]='POST:renderGrub:' + ACTIONS[$((${#ACTIONS[*]} + 1))]='POST:renderGrub:-floyd' + shift 1 + ;; + + --ksplash ) + ACTIONS[$((${#ACTIONS[*]} + 1))]='LAST:renderKsplash' + shift 1 + ;; + + --gdm ) + ACTIONS[$((${#ACTIONS[*]} + 1))]='LAST:renderDm:Gdm:800x600 1024x768 1280x1024 1360x768 1680x1050 2048x1536 2560x960 2560x1240 3271x1227' + shift 1 + ;; + + --kdm ) + ACTIONS[$((${#ACTIONS[*]} + 1))]='LAST:renderDm:Kdm:800x600 1024x768 1280x1024 1360x768 1680x1050 2048x1536 2560x960 2560x1240 3271x1227' + shift 1 + ;; + + --group-by-type ) + ACTIONS[$((${#ACTIONS[*]} + 1))]="POST:groupByType:$2" + shift 2 + ;; + + --format ) + ACTIONS[$((${#ACTIONS[*]} + 1))]="POST:renderFormats:$2" shift 2 ;; @@ -118,17 +132,6 @@ function identity_getActions { # copy. cli_checkRepoDirSource - # Define pre-rendition configuration directory. Pre-rendition - # configuration directory is where we store render.conf.sh - # scripts. The render.conf.sh script defines how each identity - # content is rendered. - local ARTCONF=$(echo "$ACTIONVAL" \ - | sed -r -e 's!/(Identity)!/Scripts/Bash/Cli/Functions/Identity/Config/\1!' \ - -e "s!/Motifs/$(cli_getPathComponent '--theme')!!" ) - - # Check directory of pre-rendition configuration script. - cli_checkFiles "$ARTCONF" 'd' - # Syncronize changes between the working copy and the central # repository to bring down changes. cli_syncroRepoChanges diff --git a/Scripts/Bash/Cli/Functions/Identity/identity_getConfig.sh b/Scripts/Bash/Cli/Functions/Identity/identity_getConfig.sh index dea6e48..9b88029 100755 --- a/Scripts/Bash/Cli/Functions/Identity/identity_getConfig.sh +++ b/Scripts/Bash/Cli/Functions/Identity/identity_getConfig.sh @@ -52,7 +52,7 @@ function identity_getConfig { # Sanitate theme model value using repository directory name # convenction. - FLAG_THEME_MODEL=$(cli_getRepoName "$THEMEMODEL" 'd') + FLAG_THEME_MODEL=$(cli_getRepoName "$FLAG_THEME_MODEL" 'd') # Check theme model directory. cli_checkFiles "$(cli_getRepoTLDir)/Identity/Themes/Models/${FLAG_THEME_MODEL}" 'd' diff --git a/Scripts/Bash/Cli/Functions/Identity/identity_render.sh b/Scripts/Bash/Cli/Functions/Identity/identity_render.sh index 4acb8a5..086a55c 100755 --- a/Scripts/Bash/Cli/Functions/Identity/identity_render.sh +++ b/Scripts/Bash/Cli/Functions/Identity/identity_render.sh @@ -39,6 +39,12 @@ function identity_render { local NEXT_FILE_DIR='' local COUNT=0 + # Define post-rendition and last-rendition array variables from + # actions array variable. + local -a POSTACTIONS + local -a LASTACTIONS + identity_getConfig + # Define the extension pattern for template files. This is the # file extensions that centos-art will look for in order to build # the list of files to process. The list of files to process @@ -198,7 +204,7 @@ function identity_render { #identity_renderDocbookLastActions else - cli_printMessage "`gettext "The template extension you try to render is not supported yet."`" 'AsErrorLine' + cli_printMessage "`gettext "The template file you try to render is not supported yet."`" 'AsErrorLine' cli_printMessage "$(caller)" 'AsToKnowMoreLine' fi