Fix for running TR-utilities under source root

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2013-11-29 17:00:46 +03:00
parent b75bf0cf11
commit af99dafd77

View File

@ -147,14 +147,15 @@ createPo4A() {
convertFromPoToText() { convertFromPoToText() {
sync_dir_name=$1; shift sync_dir_name=$1; shift
sync_file_name=$1; shift sync_file_name=$1; shift
pushd "${SYNC_TX_CURRENT_DIR}" >/dev/null
po4a -k 0 -q \ po4a -k 0 -q \
-M UTF-8 -L UTF-8 \ -M UTF-8 -L UTF-8 \
--variable docfile="${sync_file_name}" \ --variable docfile="${sync_file_name}" \
"${sync_dir_name}/po4a.cfg" "${sync_dir_name}/po4a.cfg"
popd >/dev/null
} }
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
#*** main code ********************************************************* #*** main code *********************************************************
SYNC_TX_CURRENT_DIR=${SYNC_TX_CURRENT_DIR:-$(pwd)} SYNC_TX_CURRENT_DIR=${SYNC_TX_CURRENT_DIR:-${MC_SOURCE_ROOT_DIR}/maint/utils/sync-transifex}