diff options
author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2021-05-30 19:29:04 +0200 |
---|---|---|
committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2021-06-13 20:46:01 +0200 |
commit | bd02e50a02ceed914135dba1e69e4457e489cf86 (patch) | |
tree | e6a7c393101c7116689fc9ed2955ff5751dc6944 /bootstrap | |
parent | ee48e784b9c5f77338224114fd1e27a1a63103aa (diff) | |
download | guix-bd02e50a02ceed914135dba1e69e4457e489cf86.tar.gz guix-bd02e50a02ceed914135dba1e69e4457e489cf86.zip |
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-x | bootstrap | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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" |