Blame Automation/centos-art.conf

Alain Reguera Delgado 615395
#!/bin/bash
Alain Reguera Delgado 615395
########################################################################
Alain Reguera Delgado 8f60cb
#
Alain Reguera Delgado 615395
#   centos-art.conf -- This file provides default configuration values
Alain Reguera Delgado 615395
#   to centos-art.sh script.
Alain Reguera Delgado 8f60cb
#
Alain Reguera Delgado 615395
#   Written by: 
Alain Reguera Delgado 615395
#   * Alain Reguera Delgado <al@centos.org.cu>, 2013
Alain Reguera Delgado 615395
#     Key fingerprint = D67D 0F82 4CBD 90BC 6421  DF28 7CCE 757C 17CA 3951
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Copyright (C) 2013 The CentOS Project
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado 615395
# it under the terms of the GNU General Public License as published by
Alain Reguera Delgado 615395
# the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado 615395
# your option) any later version.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado 615395
# WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 615395
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado 615395
# General Public License for more details.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# You should have received a copy of the GNU General Public License
Alain Reguera Delgado 615395
# along with this program; if not, write to the Free Software
Alain Reguera Delgado 615395
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
########################################################################
Alain Reguera Delgado 8f60cb
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
# Command-line interface (read-only) configuration variables.
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_NAME="centos-art.sh"
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_COMMAND="centos-art"
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_VERSION='0.5'
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_LANG_LC=$(echo ${LANG} | cut -d'.' -f1)
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_LANG_LL=$(echo ${TCAR_CLI_LANG_LC} | cut -d'_' -f1)
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_LANG_CC=$(echo ${TCAR_CLI_LANG_LC} | cut -d'_' -f2)
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_BASEDIR=$(dirname ${0})
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_MODSDIR=${TCAR_CLI_BASEDIR}/${TCAR_CLI_NAME}-mods
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_INIT_DIR=${TCAR_CLI_MODSDIR}/Cli
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_INIT_FILE=${TCAR_CLI_INIT_DIR}/cli.sh
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_INIT_FUNCTION=$(basename ${TCAR_CLI_INIT_FILE} | sed -r 's/\.sh$//')
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_L10NDIR=${TCAR_CLI_BASEDIR}/${TCAR_CLI_NAME}-l10n
Alain Reguera Delgado 615395
declare -xr TCAR_CLI_TEMPDIR=$(mktemp -p /tmp -d ${TCAR_CLI_NAME}-XXXXXX)
Alain Reguera Delgado 8f60cb
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
# User-related configuration variables.
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set directory path to the working directory, inside your
Alain Reguera Delgado 615395
# workstation. The working directory (a.k.a., working copy) is a
Alain Reguera Delgado 615395
# directory holding the .git (or .svn) directory. It is the place
Alain Reguera Delgado 615395
# where you stored the content of `git clone ...' (or `svn checkout
Alain Reguera Delgado 615395
# ...') command. It is the directory where you make local changes and
Alain Reguera Delgado 615395
# then send them up to a central repository.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_USER_WRKDIR=$(dirname ${TCAR_CLI_BASEDIR})
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set file path to your preferred text editor.  The editor you specify
Alain Reguera Delgado 615395
# will be use when you need to write commit messages and anything that
Alain Reguera Delgado 615395
# requires text edition.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_USER_EDITOR=/bin/vi
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set user-specific configuration file used by centos-art.sh script to
Alain Reguera Delgado 615395
# determine where to retrieve user-specific configuration values.
Alain Reguera Delgado 615395
# User-specific configuration files let you customize the way
Alain Reguera Delgado 615395
# centos-art.sh behaves in a multi-user environment. This variable
Alain Reguera Delgado 615395
# must be read-only.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -xr TCAR_USER_CONFIG=${HOME}/.centos-art.conf
Alain Reguera Delgado 8f60cb
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
# Flag-related configuration variables.
Alain Reguera Delgado 615395
# ----------------------------------------------------------------------
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set filter flag (-f|--filter).  This flag is mainly used to reduce
Alain Reguera Delgado 615395
# the number of files to process and is interpreted as egrep-posix
Alain Reguera Delgado 615395
# regular expression.  By default, when this flag is not provided, all
Alain Reguera Delgado 615395
# paths in the working copy will match, except files inside hidden
Alain Reguera Delgado 615395
# directories like `.svn' and `.git' that will be omitted.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_FLAG_FILTER='[[:alnum:]_/-]+'
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set verbosity flag (-q|--quiet). This flag controls whether
Alain Reguera Delgado 615395
# centos-art.sh script prints messages or not. By default, all
Alain Reguera Delgado 615395
# messages are suppressed except those directed to standard error.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_FLAG_QUIET='false'
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set affirmative flag (-y|--yes). This flag controls whether
Alain Reguera Delgado 615395
# centos-art.sh script does or does not pass confirmation request
Alain Reguera Delgado 615395
# points. By default, it doesn't.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_FLAG_YES='false'
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
# Set synchronization flag (-z|--synchronize). This flag controls
Alain Reguera Delgado 615395
# whether version control system is triggered or not after realizing
Alain Reguera Delgado 615395
# changes to source files under version control.
Alain Reguera Delgado 615395
#
Alain Reguera Delgado 615395
declare -x  TCAR_FLAG_SYNCHRONIZE='false'