File indexing completed on 2023-05-30 10:41:17
0001 #!/bin/bash 0002 # 0003 # move_translations.sh 0004 # 0005 #============================================================================= 0006 # SPDX-FileCopyrightText: 2018 Johnny Jazeix <jazeix@gmail.com> 0007 # 0008 # SPDX-License-Identifier: GPL-3.0-or-later 0009 #============================================================================= 0010 # 0011 # This is a (temporary) script to move translations retrieved by releaseme 0012 # fetchpo.rb script. The final aim is to have the po in the good arborescence 0013 # for all the platforms, like they are retrieved from svn: 0014 # poFolder/$locale/gcompris_qt.po 0015 # (where for now, it is: sourceFolder/po/gcompris_$locale.po) 0016 # 0017 # $1 is where the folder containing the po retrieved by the script 0018 # $2 is the destination folder 0019 if [ "$#" -ne 2 ]; then 0020 echo "usage: $0 poFolder destinationFolder" 0021 exit 1 0022 fi 0023 0024 if [ ! -d "$2" ]; then 0025 mkdir -p $2 0026 fi 0027 0028 for filename in $1/*/*.po; do 0029 locale=$(basename $(dirname $filename)) 0030 mv $filename $2/gcompris_$locale.po 0031 done