|
Alain Reguera Delgado |
8f60cb |
#!/bin/bash
|
|
Alain Reguera Delgado |
ff1822 |
######################################################################
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
ff1822 |
# prepare.sh -- This function standardizes configuration tasks
|
|
Alain Reguera Delgado |
ff1822 |
# needed by files inside the working copy.
|
|
Alain Reguera Delgado |
ff1822 |
#
|
|
Alain Reguera Delgado |
ff1822 |
# When you download a fresh working copy of CentOS artwork
|
|
Alain Reguera Delgado |
ff1822 |
# repository, most of its content is in source format. You need to
|
|
Alain Reguera Delgado |
ff1822 |
# process source formats in order to produce final content and make
|
|
Alain Reguera Delgado |
ff1822 |
# the connections between components (e.g., render brand images so
|
|
Alain Reguera Delgado |
ff1822 |
# they can be applied to other images). This function takes care of
|
|
Alain Reguera Delgado |
ff1822 |
# those actions and should be the first module you run in your
|
|
Alain Reguera Delgado |
ff1822 |
# workstation after downloading a fresh working copy of CentOS
|
|
Alain Reguera Delgado |
ff1822 |
# artwork repository.
|
|
Alain Reguera Delgado |
ff1822 |
#
|
|
Alain Reguera Delgado |
ff1822 |
# Written by:
|
|
Alain Reguera Delgado |
ff1822 |
# * Alain Reguera Delgado <al@centos.org.cu>, 2009-2013
|
|
Alain Reguera Delgado |
ff1822 |
# Key fingerprint = D67D 0F82 4CBD 90BC 6421 DF28 7CCE 757C 17CA 3951
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
8f60cb |
# Copyright (C) 2009-2013 The CentOS Project
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
8f60cb |
# This program is free software; you can redistribute it and/or modify
|
|
Alain Reguera Delgado |
8f60cb |
# it under the terms of the GNU General Public License as published by
|
|
Alain Reguera Delgado |
8f60cb |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
Alain Reguera Delgado |
8f60cb |
# your option) any later version.
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
8f60cb |
# This program is distributed in the hope that it will be useful, but
|
|
Alain Reguera Delgado |
8f60cb |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Alain Reguera Delgado |
8f60cb |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Alain Reguera Delgado |
8f60cb |
# General Public License for more details.
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
8f60cb |
# You should have received a copy of the GNU General Public License
|
|
Alain Reguera Delgado |
8f60cb |
# along with this program; if not, write to the Free Software
|
|
Alain Reguera Delgado |
8f60cb |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Alain Reguera Delgado |
8f60cb |
#
|
|
Alain Reguera Delgado |
ff1822 |
######################################################################
|
|
Alain Reguera Delgado |
8f60cb |
|
|
Alain Reguera Delgado |
8f60cb |
function prepare {
|
|
Alain Reguera Delgado |
8f60cb |
|
|
Alain Reguera Delgado |
8f60cb |
# Interpret arguments and options passed through command-line.
|
|
Alain Reguera Delgado |
ff1822 |
prepare_getOptions "${@}"
|
|
Alain Reguera Delgado |
8f60cb |
|
|
Alain Reguera Delgado |
ff1822 |
# Reset positional parameters on this function, using output
|
|
Alain Reguera Delgado |
ff1822 |
# produced from (getopt) arguments parser.
|
|
Alain Reguera Delgado |
ff1822 |
eval set -- "${TCAR_ARGUMENTS}"
|
|
Alain Reguera Delgado |
8f60cb |
|
|
Alain Reguera Delgado |
ff1822 |
# Execute module-specific actions.
|
|
Alain Reguera Delgado |
ff1822 |
for MODULE_ACTION in ${MODULE_ACTIONS};do
|
|
Alain Reguera Delgado |
ff1822 |
${MODULE_ACTION} "${@}"
|
|
Alain Reguera Delgado |
ff1822 |
done
|
|
Alain Reguera Delgado |
8f60cb |
|
|
Alain Reguera Delgado |
8f60cb |
}
|