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 | |
| parent | ee48e784b9c5f77338224114fd1e27a1a63103aa (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.
| -rwxr-xr-x | bootstrap | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -5,8 +5,7 @@ set -e -x | |||
| 5 | 5 | ||
| 6 | # Generate stubs for translations. | 6 | # Generate stubs for translations. |
| 7 | langs=`find po/doc -type f -name 'guix-manual*.po' \ | 7 | langs=`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` | ||
| 10 | for lang in ${langs}; do | 9 | for 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 |
| 17 | done | 16 | done |
| 18 | langs=`find po/doc -type f -name 'guix-cookbook*.po' \ | 17 | langs=`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` | ||
| 21 | for lang in ${langs}; do | 19 | for 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" |
