unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#48749] [PATCH] bootstrap: Simplify seach for translation languages.
@ 2021-05-30 18:53 Hartmut Goebel
  2021-06-08 21:08 ` Ludovic Courtès
       [not found] ` <handler.48749.B.16224008179380.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Hartmut Goebel @ 2021-05-30 18:53 UTC (permalink / raw)
  To: 48749

Extend the sed script to also behave like "basename",
saving the addtional call of "xargs basename".

* bootstrap (langs): Extend sed scripts, remove running xargs.
---
 bootstrap | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/bootstrap b/bootstrap
index a47269d87f..de024aeaa5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -5,8 +5,7 @@ set -e -x
 
 # Generate stubs for translations.
 langs=`find po/doc -type f -name 'guix-manual*.po' \
-        | sed -e 's,guix-manual\.,,' \
-        | xargs -n 1 -I{} basename {} .po`
+        | sed -e 's,.*/guix-manual\.,,;s,\.po$,,'`
 for lang in ${langs}; do
     if [ ! -e "doc/guix.${lang}.texi" ]; then
 	echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
@@ -16,8 +15,7 @@ for lang in ${langs}; do
     fi
 done
 langs=`find po/doc -type f -name 'guix-cookbook*.po' \
-        | sed -e 's,guix-cookbook\.,,' \
-        | xargs -n 1 -I{} basename {} .po`
+        | sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'`
 for lang in ${langs}; do
     if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then
 	echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi"
-- 
2.30.2





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#48749] [PATCH] bootstrap: Simplify seach for translation languages.
  2021-05-30 18:53 [bug#48749] [PATCH] bootstrap: Simplify seach for translation languages Hartmut Goebel
@ 2021-06-08 21:08 ` Ludovic Courtès
       [not found] ` <handler.48749.B.16224008179380.ack@debbugs.gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2021-06-08 21:08 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: 48749

Hi,

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> Extend the sed script to also behave like "basename",
> saving the addtional call of "xargs basename".
>
> * bootstrap (langs): Extend sed scripts, remove running xargs.

LGTM!  (Modulo typo in the subject line.)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#48749: Acknowledgement ([PATCH] bootstrap: Simplify seach for translation languages.)
       [not found] ` <handler.48749.B.16224008179380.ack@debbugs.gnu.org>
@ 2021-06-13 18:48   ` Hartmut Goebel
  0 siblings, 0 replies; 3+ messages in thread
From: Hartmut Goebel @ 2021-06-13 18:48 UTC (permalink / raw)
  To: 48749-close; +Cc: Ludovic Courtès

Thanks for pointing to th typo :-)

Pushed as bd02e50a02ceed914135dba1e69e4457e489cf86


-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-13 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 18:53 [bug#48749] [PATCH] bootstrap: Simplify seach for translation languages Hartmut Goebel
2021-06-08 21:08 ` Ludovic Courtès
     [not found] ` <handler.48749.B.16224008179380.ack@debbugs.gnu.org>
2021-06-13 18:48   ` bug#48749: Acknowledgement ([PATCH] bootstrap: Simplify seach for translation languages.) Hartmut Goebel

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git