public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH i18n] do not use find with xtr
Date: Mon,  4 Aug 2025 10:54:29 +0200	[thread overview]
Message-ID: <20250804085429.2153579-1-dietmar@proxmox.com> (raw)

because xtr automatically includes the whole subtree.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 4fa55e9..07658e3 100644
--- a/Makefile
+++ b/Makefile
@@ -161,7 +161,7 @@ endef
 # parameter 1 is the name
 # parameter 2 is the directory
 define xtrpotupdate
-	find . -name "*.rs" -path "./$(2)*" | LC_COLLATE=C sort | xargs xtr \
+	LC_COLLATE=C xtr "./$(2)" \
 	  --package-name "$(1)" \
 	  --package-version="$(shell cd $(2);git rev-parse HEAD)" \
 	  --msgid-bugs-address="<support@proxmox.com>" \
@@ -175,11 +175,11 @@ update_pot: submodule
 	$(call potupdate,pve-manager,pve-manager/www/manager6/)
 	$(call potupdate,proxmox-mailgateway,pmg-gui/js/)
 	$(call potupdate,proxmox-backup,proxmox-backup/www/)
-	$(call xtrpotupdate,proxmox-datacenter-manager-ui,proxmox-datacenter-manager/ui/src/)
-	$(call xtrpotupdate,pve-yew-mobile-gui,pve-yew-mobile-gui/src/)
-	$(call xtrpotupdate,pmg-yew-quarantine-gui,pmg-yew-quarantine-gui/src/)
-	$(call xtrpotupdate,proxmox-yew-comp,proxmox-yew-comp/src/)
-	$(call xtrpotupdate,proxmox-yew-widget-toolkit,proxmox-yew-widget-toolkit/src/)
+	$(call xtrpotupdate,proxmox-datacenter-manager-ui,proxmox-datacenter-manager/ui/src/lib.rs)
+	$(call xtrpotupdate,pve-yew-mobile-gui,pve-yew-mobile-gui/src/main.rs)
+	$(call xtrpotupdate,pmg-yew-quarantine-gui,pmg-yew-quarantine-gui/src/main.rs)
+	$(call xtrpotupdate,proxmox-yew-comp,proxmox-yew-comp/src/lib.rs)
+	$(call xtrpotupdate,proxmox-yew-widget-toolkit,proxmox-yew-widget-toolkit/src/lib.rs)
 
 do_update:
 	$(MAKE) update_pot
-- 
2.47.2


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


             reply	other threads:[~2025-08-04  8:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-04  8:54 Dietmar Maurer [this message]
2025-08-04 10:09 ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250804085429.2153579-1-dietmar@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal