mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Fix for running TR-utilities under source root
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
b75bf0cf11
commit
af99dafd77
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user