Blame Automation/Modules/Locale/locale_setDirProcessing.sh
|
Alain Reguera Delgado |
786ac0 |
#!/bin/bash
|
|
Alain Reguera Delgado |
786ac0 |
function locale_setDirProcessing {
|
|
Alain Reguera Delgado |
786ac0 |
|
|
Alain Reguera Delgado |
786ac0 |
# Sanitate non-option arguments to be sure they match the
|
|
Alain Reguera Delgado |
786ac0 |
# directory conventions established by centos-art.sh script
|
|
Alain Reguera Delgado |
786ac0 |
# against source directory locations in the working copy.
|
|
Alain Reguera Delgado |
786ac0 |
local DIRECTORY=$(tcar_checkRepoDirSource ${1})
|
|
Alain Reguera Delgado |
786ac0 |
|
|
Alain Reguera Delgado |
786ac0 |
# Retrieve list of configuration files from directory.
|
|
Alain Reguera Delgado |
786ac0 |
local CONFIGURATIONS=$(tcar_getFilesList ${DIRECTORY} \
|
|
Alain Reguera Delgado |
786ac0 |
--pattern=".+/.+\.conf$" --type="f")
|
|
Alain Reguera Delgado |
786ac0 |
|
|
Alain Reguera Delgado |
786ac0 |
# Verify non-option arguments passed to centos-art.sh
|
|
Alain Reguera Delgado |
786ac0 |
# command-line. The path provided as argument must exist in the
|
|
Alain Reguera Delgado |
786ac0 |
# repository. Otherwise, it would be possible to create arbitrary
|
|
Alain Reguera Delgado |
786ac0 |
# directories inside the repository without any meaning. In order
|
|
Alain Reguera Delgado |
786ac0 |
# to be sure all required directories are available in the
|
|
Alain Reguera Delgado |
786ac0 |
# repository it is necessary use the prepare functionality.
|
|
Alain Reguera Delgado |
786ac0 |
tcar_checkFiles -ef ${CONFIGURATIONS}
|
|
Alain Reguera Delgado |
786ac0 |
|
|
Alain Reguera Delgado |
786ac0 |
# Process each configuration file.
|
|
Alain Reguera Delgado |
786ac0 |
for CONFIGURATION in ${CONFIGURATIONS};do
|
|
Alain Reguera Delgado |
786ac0 |
locale_setLocaleType "${@}"
|
|
Alain Reguera Delgado |
786ac0 |
done
|
|
Alain Reguera Delgado |
786ac0 |
|
|
Alain Reguera Delgado |
786ac0 |
}
|