Skip to content

Commit

Permalink
Fix for running TR-utilities under source root
Browse files Browse the repository at this point in the history
Signed-off-by: Slava Zanko <[email protected]>
  • Loading branch information
slavaz committed Nov 29, 2013
1 parent b75bf0c commit af99daf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maint/utils/sync-transifex/functions
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,15 @@ createPo4A() {
convertFromPoToText() {
sync_dir_name=$1; shift
sync_file_name=$1; shift

pushd "${SYNC_TX_CURRENT_DIR}" >/dev/null
po4a -k 0 -q \
-M UTF-8 -L UTF-8 \
--variable docfile="${sync_file_name}" \
"${sync_dir_name}/po4a.cfg"
popd >/dev/null
}

# ----------------------------------------------------------------------
#*** 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}

0 comments on commit af99daf

Please sign in to comment.