3 # Midnight Commander - push doc/hints/mc.hint file to Transifex
6 # The Free Software Foundation, Inc.
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/>.
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}"