Blame Scripts/Modules/Prepare/prepare.sh

Alain Reguera Delgado 77084b
#!/bin/bash
Alain Reguera Delgado 77084b
######################################################################
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
#   tcar - The CentOS Artwork Repository automation tool.
Alain Reguera Delgado 77084b
#   Copyright © 2014 The CentOS Artwork SIG
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
#   This program is free software; you can redistribute it and/or
Alain Reguera Delgado 77084b
#   modify it under the terms of the GNU General Public License as
Alain Reguera Delgado 77084b
#   published by the Free Software Foundation; either version 2 of the
Alain Reguera Delgado 77084b
#   License, or (at your option) any later version.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
#   This program is distributed in the hope that it will be useful,
Alain Reguera Delgado 77084b
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 77084b
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado 77084b
#   General Public License for more details.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
#   You should have received a copy of the GNU General Public License
Alain Reguera Delgado 77084b
#   along with this program; if not, write to the Free Software
Alain Reguera Delgado 77084b
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
#   Alain Reguera Delgado <al@centos.org.cu>
Alain Reguera Delgado 77084b
#   39 Street No. 4426 Cienfuegos, Cuba.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
######################################################################
Alain Reguera Delgado 77084b
Alain Reguera Delgado 77084b
# Standardize configuration tasks related to repository's workplace.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
# When you install The CentOS Artwork Repository most of its content
Alain Reguera Delgado 77084b
# is in source format. In order to produce final content and make the
Alain Reguera Delgado 77084b
# connections between the produced components, you need to process the
Alain Reguera Delgado 77084b
# source formats somewhere inside your workstation.  This module takes
Alain Reguera Delgado 77084b
# the first non-option argument passed in the command-line as the
Alain Reguera Delgado 77084b
# workplace where you are going to process source formats in your
Alain Reguera Delgado 77084b
# workstation. During the preparation process, this module creates the
Alain Reguera Delgado 77084b
# workplace directory structure, the workplace connection with The
Alain Reguera Delgado 77084b
# CentOS Artwork Repository using symbolic links, and images required
Alain Reguera Delgado 77084b
# to brand other images.
Alain Reguera Delgado 77084b
#
Alain Reguera Delgado 77084b
# This module should be the first module you run in your workstation
Alain Reguera Delgado 77084b
# after installing The CentOS Artwork Repository.
Alain Reguera Delgado 77084b
function prepare {
Alain Reguera Delgado 77084b
Alain Reguera Delgado 77084b
    prepare_getOptions
Alain Reguera Delgado 77084b
Alain Reguera Delgado 77084b
    for TCAR_WORKDIR in ${TCAR_SCRIPT_ARGUMENT};do
Alain Reguera Delgado 77084b
        prepare_setWorkplace
Alain Reguera Delgado 77084b
    done
Alain Reguera Delgado 77084b
Alain Reguera Delgado 77084b
}