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 31B4F1FF0E1 for ; Mon, 27 Jul 2026 12:01:38 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9C1912160C; Mon, 27 Jul 2026 12:00:34 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox-i18n v3 09/12] make: add check-linguas target Date: Mon, 27 Jul 2026 11:59:52 +0200 Message-ID: <20260727095957.223209-10-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260727095957.223209-1-m.sandoval@proxmox.com> References: <20260727095957.223209-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: 1785146363857 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.232 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: WRQXX2SOOMGBZIZAORASJ3Y23AKPSOQB X-Message-ID-Hash: WRQXX2SOOMGBZIZAORASJ3Y23AKPSOQB 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. Note that the check-%.po check already checks that all LINGUAS have a respective PO file. 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b655eb6..94aa3eef 100644 --- a/Makefile +++ b/Makefile @@ -202,5 +202,13 @@ upload: upload-pve upload-pmg upload-pbs upload-pdm check-%: %.po msgfmt --check $*.po +.PHONY: check-linguas +check-linguas: + sort --check --unique LINGUAS + 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: $(addprefix check-, $(LINGUAS)) check-linguas -- 2.47.3