Blame tcar-scripts-prepare/prepare.sh

Alain Reguera Delgado c554f1
#!/bin/bash
Alain Reguera Delgado c554f1
######################################################################
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado a44aed
#   prepare.sh -- This module standardizes configuration tasks related
Alain Reguera Delgado a44aed
#   to repository workplace.
Alain Reguera Delgado a44aed
#
Alain Reguera Delgado a44aed
#   When you install The CentOS Artwork Repository most of its content
Alain Reguera Delgado a44aed
#   is in source format. In order to produce final content and make
Alain Reguera Delgado a44aed
#   the connections between the produced components, you need to
Alain Reguera Delgado a44aed
#   process the source formats somewhere inside your workstation.
Alain Reguera Delgado a44aed
#   This module takes the first non-option argument passed in the
Alain Reguera Delgado a44aed
#   command-line as the workplace where you are going to process
Alain Reguera Delgado a44aed
#   source formats in your workstation. During the preparation
Alain Reguera Delgado a44aed
#   process, this module creates the workplace directory structure,
Alain Reguera Delgado a44aed
#   the workplace connection with The CentOS Artwork Repository using
Alain Reguera Delgado a44aed
#   symbolic links, and images required to brand other images.
Alain Reguera Delgado a44aed
#
Alain Reguera Delgado a44aed
#   This module should be the first module you run in your workstation
Alain Reguera Delgado a44aed
#   after installing The CentOS 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
    prepare_getOptions
Alain Reguera Delgado c554f1
Alain Reguera Delgado 6c3e96
    for TCAR_WORKDIR in ${TCAR_SCRIPT_ARGUMENT};do
Alain Reguera Delgado a71ae4
        prepare_setWorkplace
Alain Reguera Delgado a71ae4
    done
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
}