[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: bootstrap: Simplify search for translation langua
From: |
guix-commits |
Subject: |
branch master updated: bootstrap: Simplify search for translation languages. |
Date: |
Sun, 13 Jun 2021 14:46:11 -0400 |
This is an automated email from the git hooks/post-receive script.
htgoebel pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new bd02e50 bootstrap: Simplify search for translation languages.
bd02e50 is described below
commit bd02e50a02ceed914135dba1e69e4457e489cf86
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Sun May 30 19:29:04 2021 +0200
bootstrap: Simplify search for translation languages.
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 a47269d..de024ae 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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: bootstrap: Simplify search for translation languages.,
guix-commits <=