gnome-shell/subprojects/extensions-tool/generate-translations.sh
Florian Müllner 06c4929493 subprojects: Use meson compile to generate translations
... for the same cosmetic reasons as the previous commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1937>
2021-08-24 08:18:26 +00:00

20 lines
407 B
Bash
Executable File

#!/usr/bin/bash
cd $(dirname $0)
sed -e '/subprojects\/extensions-tool/!d' \
-e 's:subprojects/extensions-tool/::' ../../po/POTFILES.in > po/POTFILES.in
for l in $(<po/LINGUAS)
do
cp ../../po/$l.po po/$l.po
done
builddir=$(mktemp -d -p.)
meson -Dman=False $builddir
meson compile -C $builddir gnome-extensions-tool-pot
meson compile -C $builddir gnome-extensions-tool-update-po
rm -rf $builddir