Blame Scripts/tcar.conf

Alain Reguera Delgado 70dd66
#!/bin/bash
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
#
Alain Reguera Delgado 70dd66
#   tcar.conf -- Configuration file for tcar automation script.
Alain Reguera Delgado 70dd66
#
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
# Repository (source files)
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Base directory where repository files are installed in.
Alain Reguera Delgado 70dd66
declare -x TCAR_BASEDIR=/usr/share/tcar
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Base directory where automation scripts are installed in.
Alain Reguera Delgado 70dd66
declare -x TCAR_SCRIPT_BASEDIR=${TCAR_BASEDIR}/Scripts
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Base directory where man pages are installed in.
Alain Reguera Delgado 70dd66
declare -x TCAR_SCRIPT_MANUALS=/usr/share/man/man1
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Default text editor.
Alain Reguera Delgado 70dd66
declare -x TCAR_SCRIPT_EDITOR=/usr/bin/vim
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Base directory where automation script modules are installed in.
Alain Reguera Delgado 70dd66
declare -x TCAR_SCRIPT_MODULES_BASEDIR=${TCAR_SCRIPT_BASEDIR}/Modules
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Directory to store temporal files.
Alain Reguera Delgado 70dd66
declare -x TCAR_SCRIPT_TEMPDIR=$(mktemp -p /tmp -d ${TCAR_SCRIPT_NAME}-XXXXXX)
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
# Workplace (final content)
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Base directory where final content is produced in. This value is
Alain Reguera Delgado 70dd66
# also known as the "workplace" and can be customized later by the
Alain Reguera Delgado 70dd66
# user, using its personal configuration file (e.g., ~/.tcar.conf).
Alain Reguera Delgado 70dd66
# The value of this variable must point to a directory structure
Alain Reguera Delgado 70dd66
# created by the prepare command of tcar script.
Alain Reguera Delgado c61ca8
declare -x TCAR_WORKDIR=/tmp/${TCAR_SCRIPT_NAME}-workplace
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
# Internationalization
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set the script text domain. This information is used by gettext
Alain Reguera Delgado 70dd66
# system to retrieve translated strings from machine object (MO) files
Alain Reguera Delgado 70dd66
# with this name. This variable is reset based on the common function
Alain Reguera Delgado 70dd66
# or module in turn.
Alain Reguera Delgado 70dd66
declare -x TEXTDOMAIN="${TCAR_SCRIPT_NAME}"
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set the script text domain directory. This information is used by
Alain Reguera Delgado 70dd66
# gettext system to know where the machine object (MO) files are
Alain Reguera Delgado 70dd66
# stored in. The value of variable is the same for both common
Alain Reguera Delgado 70dd66
# functions and individual modules.
Alain Reguera Delgado 70dd66
declare -x TEXTDOMAINDIR=/usr/share/locale
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
# Script Flags
Alain Reguera Delgado 70dd66
######################################################################
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set filter flag (-f|--filter).  This flag is mainly used to reduce
Alain Reguera Delgado 70dd66
# the number of files to process and is interpreted as egrep-posix
Alain Reguera Delgado 70dd66
# regular expression.  By default, when this flag is not provided, all
Alain Reguera Delgado 70dd66
# paths in the working copy will match, except files inside hidden
Alain Reguera Delgado 70dd66
# directories like `.svn' and `.git' that will be omitted.
Alain Reguera Delgado 70dd66
declare -x TCAR_FLAG_FILTER='[[:alnum:]_/-]+'
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set verbosity flag (-q|--quiet). This flag controls whether tcar.sh
Alain Reguera Delgado 70dd66
# script prints messages or not. By default, all messages are
Alain Reguera Delgado 70dd66
# suppressed except those directed to standard error.
Alain Reguera Delgado 70dd66
declare -x TCAR_FLAG_QUIET='false'
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set affirmative flag (-y|--yes). This flag controls whether tcar.sh
Alain Reguera Delgado 70dd66
# script does or does not pass confirmation request points. By
Alain Reguera Delgado 70dd66
# default, it doesn't.
Alain Reguera Delgado 70dd66
declare -x TCAR_FLAG_YES='false'
Alain Reguera Delgado 70dd66
Alain Reguera Delgado 70dd66
# Set debugger flag (-d|--debug). This flag controls whether tcar.sh
Alain Reguera Delgado 70dd66
# script does or does not print debugging information.  The tcar.sh
Alain Reguera Delgado 70dd66
# script prints debug information to standard output.
Alain Reguera Delgado 70dd66
declare -x TCAR_FLAG_DEBUG='false'