Blob Blame History Raw
#!/bin/bash
########################################################################
#
#   centos-art.conf -- This file provides default configuration values
#   to centos-art.sh script.
#
#   Written by: 
#   * Alain Reguera Delgado <al@centos.org.cu>, 2013
#     Key fingerprint = D67D 0F82 4CBD 90BC 6421  DF28 7CCE 757C 17CA 3951
#
# Copyright (C) 2013 The CentOS Project
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
########################################################################

# ----------------------------------------------------------------------
# Command-line interface (read-only) configuration variables.
# ----------------------------------------------------------------------
declare -xr TCAR_CLI_NAME="centos-art.sh"
declare -xr TCAR_CLI_COMMAND="centos-art"
declare -xr TCAR_CLI_VERSION='0.5'
declare -xr TCAR_CLI_LANG_LC=$(echo ${LANG} | cut -d'.' -f1)
declare -xr TCAR_CLI_LANG_LL=$(echo ${TCAR_CLI_LANG_LC} | cut -d'_' -f1)
declare -xr TCAR_CLI_LANG_CC=$(echo ${TCAR_CLI_LANG_LC} | cut -d'_' -f2)
declare -xr TCAR_CLI_BASEDIR=$(dirname ${0})
declare -xr TCAR_CLI_MODSDIR=${TCAR_CLI_BASEDIR}/${TCAR_CLI_NAME}-mods
declare -xr TCAR_CLI_INIT_DIR=${TCAR_CLI_MODSDIR}/Cli
declare -xr TCAR_CLI_INIT_FILE=${TCAR_CLI_INIT_DIR}/cli.sh
declare -xr TCAR_CLI_INIT_FUNCTION=$(basename ${TCAR_CLI_INIT_FILE} | sed -r 's/\.sh$//')
declare -xr TCAR_CLI_L10NDIR=${TCAR_CLI_BASEDIR}/${TCAR_CLI_NAME}-l10n
declare -xr TCAR_CLI_TEMPDIR=$(mktemp -p /tmp -d ${TCAR_CLI_NAME}-XXXXXX)

# ----------------------------------------------------------------------
# User-related configuration variables.
# ----------------------------------------------------------------------
#
# Set directory path to the working directory, inside your
# workstation. The working directory (a.k.a., working copy) is a
# directory holding the .git (or .svn) directory. It is the place
# where you stored the content of `git clone ...' (or `svn checkout
# ...') command. It is the directory where you make local changes and
# then send them up to a central repository.
#
declare -x  TCAR_USER_WRKDIR=$(dirname ${TCAR_CLI_BASEDIR})
#
# Set file path to your preferred text editor.  The editor you specify
# will be use when you need to write commit messages and anything that
# requires text edition.
#
declare -x  TCAR_USER_EDITOR=/bin/vi
#
# Set user-specific configuration file used by centos-art.sh script to
# determine where to retrieve user-specific configuration values.
# User-specific configuration files let you customize the way
# centos-art.sh behaves in a multi-user environment. This variable
# must be read-only.
#
declare -xr TCAR_USER_CONFIG=${HOME}/.centos-art.conf

# ----------------------------------------------------------------------
# Flag-related configuration variables.
# ----------------------------------------------------------------------
#
# Set filter flag (-f|--filter).  This flag is mainly used to reduce
# the number of files to process and is interpreted as egrep-posix
# regular expression.  By default, when this flag is not provided, all
# paths in the working copy will match, except files inside hidden
# directories like `.svn' and `.git' that will be omitted.
#
declare -x  TCAR_FLAG_FILTER='[[:alnum:]_/-]+'
#
# Set verbosity flag (-q|--quiet). This flag controls whether
# centos-art.sh script prints messages or not. By default, all
# messages are suppressed except those directed to standard error.
#
declare -x  TCAR_FLAG_QUIET='false'
#
# Set affirmative flag (-y|--yes). This flag controls whether
# centos-art.sh script does or does not pass confirmation request
# points. By default, it doesn't.
#
declare -x  TCAR_FLAG_YES='false'
#
# Set synchronization flag (-z|--synchronize). This flag controls
# whether version control system is triggered or not after realizing
# changes to source files under version control.
#
declare -x  TCAR_FLAG_SYNCHRONIZE='false'