File indexing completed on 2022-11-29 20:01:36

0001 #!/bin/sh
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 # SPDX-FileCopyrightText: 2020-2022 Harald Sitter <sitter@kde.org>
0004 
0005 # Our l10n scripting isn't working with spaces anywhere and we actively rely on word splitting in our Messages.sh.
0006 # shellcheck disable=SC2046
0007 
0008 podir=${podir:?} # ensure it is defined
0009 
0010 $XGETTEXT $(find . -name \*.cpp -o -name \*.h) -o "$podir"/drkonqi5.pot
0011 # Extract JavaScripty files as what they are, otherwise for example template literals won't work correctly (by default we extract as C++).
0012 # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
0013 $XGETTEXT --join-existing --language=JavaScript $(find . -name \*.qml -o -name \*.js) -o "$podir"/drkonqi5.pot