extjs/debian/rules
Thomas Lamprecht 65a2888b37 d/rules: check if all translations are present
to hedge against the (rather unlikely) case where we get another ExtJS
update, as then it might happen that the dev updating the repo to that
overlooks (or doesn't remembers) that the Georgian (ka) language got
contributed manually, not shipped by ExtJS, and delete it by mistake.

Check for all available languages, not just the one exposed in
widget-toolkit, to be future-proof (e.g., we could start using more)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-08-03 16:23:07 +02:00

19 lines
602 B
Makefile
Executable File

#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
%:
dh $@
override_dh_auto_test:
dh_auto_test
# check if all languages are still shipped, as e.g. Georgian (ka) is manually added by us
set -e; for l in \
af bg ca cs da de el_GR en en_AU en_GB es et fa fi fr fr_CA gr he hr hu id it ja ka ko lt \
lv mk nl no_NB no_NN pl pt pt_BR pt_PT ro ru sk sl sr sr_RS sv_SE th tr ukr vn zh_CN zh_TW; do \
echo "checking for '$$l' locale"; \
test -e "extjs/build/classic/locale/locale-$$l.js"; \
done