mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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.
This commit is contained in:
parent
ee48e784b9
commit
bd02e50a02
1 changed files with 2 additions and 4 deletions
|
@ -5,8 +5,7 @@ set -e -x
|
||||||
|
|
||||||
# Generate stubs for translations.
|
# Generate stubs for translations.
|
||||||
langs=`find po/doc -type f -name 'guix-manual*.po' \
|
langs=`find po/doc -type f -name 'guix-manual*.po' \
|
||||||
| sed -e 's,guix-manual\.,,' \
|
| sed -e 's,.*/guix-manual\.,,;s,\.po$,,'`
|
||||||
| xargs -n 1 -I{} basename {} .po`
|
|
||||||
for lang in ${langs}; do
|
for lang in ${langs}; do
|
||||||
if [ ! -e "doc/guix.${lang}.texi" ]; then
|
if [ ! -e "doc/guix.${lang}.texi" ]; then
|
||||||
echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
|
echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
|
||||||
|
@ -16,8 +15,7 @@ for lang in ${langs}; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
|
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
|
||||||
| sed -e 's,guix-cookbook\.,,' \
|
| sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'`
|
||||||
| xargs -n 1 -I{} basename {} .po`
|
|
||||||
for lang in ${langs}; do
|
for lang in ${langs}; do
|
||||||
if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then
|
if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then
|
||||||
echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi"
|
echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi"
|
||||||
|
|
Loading…
Reference in a new issue