|
Alain Reguera Delgado |
c554f1 |
#!/bin/bash
|
|
Alain Reguera Delgado |
c554f1 |
######################################################################
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# prepare.sh -- This module standardizes repository configuration
|
|
Alain Reguera Delgado |
c554f1 |
# tasks.
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# When you download a fresh working copy of CentOS artwork
|
|
Alain Reguera Delgado |
c554f1 |
# repository, most of its content is in source format. You need to
|
|
Alain Reguera Delgado |
c554f1 |
# process source formats in order to produce final content and make
|
|
Alain Reguera Delgado |
c554f1 |
# the connections between components (e.g., render brand images so
|
|
Alain Reguera Delgado |
c554f1 |
# they can be applied to other images). This function takes care of
|
|
Alain Reguera Delgado |
c554f1 |
# those actions and should be the first module you run in your
|
|
Alain Reguera Delgado |
c554f1 |
# workstation after downloading a fresh working copy of CentOS
|
|
Alain Reguera Delgado |
c554f1 |
# artwork repository.
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# Written by:
|
|
Alain Reguera Delgado |
c554f1 |
# * Alain Reguera Delgado <al@centos.org.cu>, 2009-2013
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# Copyright (C) 2009-2013 The CentOS Artwork SIG
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# This program is free software; you can redistribute it and/or modify
|
|
Alain Reguera Delgado |
c554f1 |
# it under the terms of the GNU General Public License as published by
|
|
Alain Reguera Delgado |
c554f1 |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
Alain Reguera Delgado |
c554f1 |
# your option) any later version.
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# This program is distributed in the hope that it will be useful, but
|
|
Alain Reguera Delgado |
c554f1 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Alain Reguera Delgado |
c554f1 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Alain Reguera Delgado |
c554f1 |
# General Public License for more details.
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
# You should have received a copy of the GNU General Public License
|
|
Alain Reguera Delgado |
c554f1 |
# along with this program; if not, write to the Free Software
|
|
Alain Reguera Delgado |
c554f1 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Alain Reguera Delgado |
c554f1 |
#
|
|
Alain Reguera Delgado |
c554f1 |
######################################################################
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
function prepare {
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
local ACTION=''
|
|
Alain Reguera Delgado |
c554f1 |
local ACTIONS=''
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
prepare_getOptions
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
if [[ -z ${ACTIONS} ]];then
|
|
Alain Reguera Delgado |
c554f1 |
ACTIONS='packages locales images docs links'
|
|
Alain Reguera Delgado |
c554f1 |
fi
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
for ACTION in ${ACTIONS};do
|
|
Alain Reguera Delgado |
c554f1 |
tcar_setModuleEnvironment -m "${ACTION}" -t "child" ${TCAR_MODULE_ARGUMENT}
|
|
Alain Reguera Delgado |
c554f1 |
done
|
|
Alain Reguera Delgado |
c554f1 |
|
|
Alain Reguera Delgado |
c554f1 |
}
|