Blame Scripts/Functions/Prepare/prepare.sh
|
|
4c79b5 |
#!/bin/bash
|
|
|
4c79b5 |
#
|
|
|
8e457b |
# prepare.sh -- This function prepares your workstation for using the
|
|
|
8e457b |
# centos-art command-line.
|
|
|
4c79b5 |
#
|
|
|
3b0984 |
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
|
|
|
fa95b1 |
#
|
|
|
fa95b1 |
# This program is free software; you can redistribute it and/or modify
|
|
|
fa95b1 |
|
|
|
dcd347 |
|
|
|
dcd347 |
|
|
|
fa95b1 |
#
|
|
|
74a058 |
|
|
|
74a058 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# General Public License for more details.
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# along with this program; if not, write to the Free Software
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
7ac5a5 |
#
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
3b853a |
# $Id$
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
4c79b5 |
|
|
|
111205 |
function prepare {
|
|
|
4c79b5 |
|
|
|
38d53d |
|
|
|
38d53d |
|
|
|
38d53d |
|
|
|
38d53d |
local ACTIONNAM=''
|
|
|
38d53d |
local ACTIONNAMS=''
|
|
|
8e457b |
|
|
|
38d53d |
|
|
|
38d53d |
|
|
|
38d53d |
PREPARE_CONFIG_DIR=${FUNCDIR}/${FUNCDIRNAM}/Config
|
|
|
8e457b |
|
|
|
8e457b |
# Interpret arguments and options passed through command-line.
|
|
|
6449f4 |
prepare_getOptions
|
|
|
4c79b5 |
|
|
|
8e457b |
# Redefine positional parameters using ARGUMENTS. At this point,
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
eval set -- "$ARGUMENTS"
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
6449f4 |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
# Define action value. There is no action value in this function,
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
8e457b |
|
|
|
38d53d |
|
|
|
38d53d |
for ACTIONNAM in $ACTIONNAMS;do
|
|
|
38d53d |
${ACTIONNAM}
|
|
|
38d53d |
done
|
|
|
8e457b |
|
|
|
4c79b5 |
}
|