Add the hint-files synchronization with Transifex.
[midnight-commander.git] / maint / sync-transifex / mc.hint-toTransifex.sh
blob25e0b81902e0dbc7258bb2b06281d0f7462b79be
1 #!/bin/bash
3 # Midnight Commander - push doc/hints/mc.hint file to Transifex
5 # Copyright (C) 2013
6 # The Free Software Foundation, Inc.
8 # Written by:
9 # Slava Zanko <slavazanko@gmail.com>, 2013
11 # This file is part of the Midnight Commander.
13 # The Midnight Commander is free software: you can redistribute it
14 # and/or modify it under the terms of the GNU General Public License as
15 # published by the Free Software Foundation, either version 3 of the License,
16 # or (at your option) any later version.
18 # The Midnight Commander is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 set -e
28 MC_SOURCE_ROOT_DIR=${MC_SOURCE_ROOT_DIR:-$(dirname $(dirname $(pwd)))}
30 #*** include section (source functions, for example) *******************
32 source "${MC_SOURCE_ROOT_DIR}/maint/sync-transifex/functions"
34 #*** file scope functions **********************************************
36 #*** main code *********************************************************
38 WORK_DIR=$(initSyncDirIfNeeded "mc.hint")
40 convertFromTextToPo "${MC_SOURCE_ROOT_DIR}/doc/hints/mc.hint" "${WORK_DIR}/mc.doc.pot"
42 sendSourceToTransifex "${WORK_DIR}"