File indexing completed on 2025-07-06 04:25:05

0001 #! /usr/bin/env bash
0002 #
0003 # SPDX-FileCopyrightText: 2021 George Florea Bănuș <georgefb899@gmail.com>
0004 #
0005 # SPDX-License-Identifier: GPL-3.0-or-later
0006 #
0007 
0008 # ensure it is defined
0009 podir=${podir:?}
0010 
0011 $EXTRACTRC `find . -name \*.kcfg` >> rc.cpp
0012 $XGETTEXT $(find . -name \*.cpp -o -name \*.h) -o "$podir"/haruna.pot
0013 # Extract JavaScripty files as what they are, otherwise for example
0014 # template literals won't work correctly (by default we extract as C++).
0015 # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
0016 $XGETTEXT --join-existing --language=JavaScript $(find . -name \*.qml -o -name \*.js) -o "$podir"/haruna.pot
0017