summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2021-05-30 19:29:04 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2021-06-13 20:46:01 +0200
commitbd02e50a02ceed914135dba1e69e4457e489cf86 (patch)
treee6a7c393101c7116689fc9ed2955ff5751dc6944 /bootstrap
parentee48e784b9c5f77338224114fd1e27a1a63103aa (diff)
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.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 2 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index a47269d87f1..de024aeaa5c 100755
--- a/bootstrap
+++ b/bootstrap
@@ -5,8 +5,7 @@ set -e -x
5 5
6# Generate stubs for translations. 6# Generate stubs for translations.
7langs=`find po/doc -type f -name 'guix-manual*.po' \ 7langs=`find po/doc -type f -name 'guix-manual*.po' \
8 | sed -e 's,guix-manual\.,,' \ 8 | sed -e 's,.*/guix-manual\.,,;s,\.po$,,'`
9 | xargs -n 1 -I{} basename {} .po`
10for lang in ${langs}; do 9for lang in ${langs}; do
11 if [ ! -e "doc/guix.${lang}.texi" ]; then 10 if [ ! -e "doc/guix.${lang}.texi" ]; then
12 echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" 11 echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
@@ -16,8 +15,7 @@ for lang in ${langs}; do
16 fi 15 fi
17done 16done
18langs=`find po/doc -type f -name 'guix-cookbook*.po' \ 17langs=`find po/doc -type f -name 'guix-cookbook*.po' \
19 | sed -e 's,guix-cookbook\.,,' \ 18 | sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'`
20 | xargs -n 1 -I{} basename {} .po`
21for lang in ${langs}; do 19for lang in ${langs}; do
22 if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then 20 if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then
23 echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi" 21 echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi"