From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 6A5421FF0E6 for ; Fri, 24 Jul 2026 13:13:35 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 41D4C21577; Fri, 24 Jul 2026 13:13:03 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox-i18n v2 09/11] make: add linguas checks Date: Fri, 24 Jul 2026 13:12:53 +0200 Message-ID: <20260724111257.325867-10-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260724111257.325867-1-m.sandoval@proxmox.com> References: <20260724111257.325867-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1784891547522 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.266 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: Z2SHUBSFAMDNVKMBEFCXM54GUAVX7V72 X-Message-ID-Hash: Z2SHUBSFAMDNVKMBEFCXM54GUAVX7V72 X-MailFrom: m.sandoval@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Cross-references the list of languages in LINGUAS and the *.po files. Signed-off-by: Maximiliano Sandoval --- Notes: This should be equivalent to the less-verbose: test "$(ls *.po | sed 's/.po//')" = "$(cat LINGUAS)" but easier to understand why it fails on failure. Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ceac4eab..3dd30401 100644 --- a/Makefile +++ b/Makefile @@ -202,5 +202,19 @@ upload: upload-pve upload-pmg upload-pbs upload-pdm check-%: %.po msgfmt --check $*.po +.PHONY: check-linguas +check-linguas: + sort --check --uniq LINGUAS + set -e; for lang in $(LINGUAS); do \ + echo "checking if $$lang.po exists"; \ + test -f $$lang.po; \ + done + set -e; for lang in $(shell ls *.po | sed 's/\.po//'); do \ + echo "checking if $$lang is in LINGUAS"; \ + grep --quiet --line-regexp $$lang LINGUAS; \ + done + .PHONY: check -check: $(addprefix check-, $(LINGUAS)) +check: + $(MAKE) $(addprefix check-, $(LINGUAS)) + $(MAKE) check-linguas -- 2.47.3