From 65a2888b37a9047c9d00fab215c792058735dbef Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 3 Aug 2023 16:21:53 +0200 Subject: [PATCH] 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 --- debian/rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/rules b/debian/rules index 2a6e77da..b0dd68f9 100755 --- a/debian/rules +++ b/debian/rules @@ -7,3 +7,12 @@ %: 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