annotate kdiff3/po/create_qm_files @ 113:7bca1f1340f6 tip

Build fixes for Xcode 10 / Qt 5.12
author Chris Cannam
date Mon, 17 Dec 2018 11:13:01 +0000
parents 7756588e8519
children
rev   line source
joachim99@93 1 # Copyright (C) 2009 by Joachim Eibl
joachim99@93 2 # Licence: GPL V2
joachim99@93 3 # GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
joachim99@93 4 # This program is free software; you can redistribute it and/or modify
joachim99@93 5 # it under the terms of the GNU General Public License as published by
joachim99@93 6 # the Free Software Foundation; either version 2 of the License, or
joachim99@93 7 # (at your option) any later version.
joachim99@93 8 #
joachim99@93 9 # This program is distributed in the hope that it will be useful,
joachim99@93 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
joachim99@93 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
joachim99@93 12 # GNU General Public License for more details.
joachim99@93 13 #
joachim99@93 14 # You should have received a copy of the GNU General Public License
joachim99@93 15 # along with this program; if not, write to the Free Software
joachim99@93 16 # Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA
joachim99@93 17 #
joachim99@93 18 # For details see file "COPYING".
joachim99@93 19
joachim99@93 20 # create_qm_files:
joachim99@93 21 # Create translation files needed by qt-only version.
joachim99@93 22 # Requirements: qt3-devel-tools
joachim99@93 23
joachim99@93 24 echo "Create qm files (KDiff3 translation files for the qt-only version)"
joachim99@93 25 if [ "$1" = "local" ]; then
joachim99@93 26 for i in `ls` ; do
joachim99@93 27 if [ -s $i/kdiff3.po ]; then
joachim99@93 28 # (msg2qm is from "qt3-devel-tools"-package.)
joachim99@93 29 echo Creating ./kdiff3_$i.qm
joachim99@93 30 /usr/lib/qt3/bin/msg2qm $i/kdiff3.po kdiff3_$i.qm
joachim99@93 31 fi
joachim99@93 32 done
joachim99@93 33 elif [ "$1" = "install" ]; then
joachim99@93 34 for i in `ls` ; do
joachim99@93 35 if [ -s $i/kdiff3.po ]; then
joachim99@93 36 # (msg2qm is from "qt3-devel-tools"-package.)
joachim99@93 37 echo Installing /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm
joachim99@93 38 sudo /usr/lib/qt3/bin/msg2qm $i/kdiff3.po /usr/share/locale/$i/LC_MESSAGES/kdiff3.qm
joachim99@93 39 fi
joachim99@93 40 done
joachim99@93 41 else
joachim99@93 42 echo Usage 1: sh create_qm_files local
joachim99@93 43 echo Usage 2: sh create_qm_files install
joachim99@93 44 fi
joachim99@93 45