mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
9ca5ff882e
* bootstrap: Generate stub files for the manual translations whose generated files are not included in the VCS. * doc/contributing.de.texi: Remove file. * doc/contributing.es.texi: Remove file. * doc/contributing.fr.texi: Remove file. * doc/contributing.zh_CN.texi: Remove file. * doc/guix.de.texi: Remove file. * doc/guix.es.texi: Remove file. * doc/guix.fr.texi: Remove file. * doc/guix.zh_CN.texi: Remove file. * .gitignore: Add them. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
19 lines
511 B
Bash
Executable file
19 lines
511 B
Bash
Executable file
#!/bin/sh
|
|
# Create the build system.
|
|
|
|
set -e -x
|
|
|
|
# Generate stubs for translations.
|
|
langs=`find po/doc -type f -name '*.po' \
|
|
| sed -e 's,guix-manual\.,,' \
|
|
| xargs -n 1 -I{} basename {} .po`
|
|
for lang in ${langs}; do
|
|
if [ ! -e "doc/guix.${lang}.texi" ]; then
|
|
echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi"
|
|
echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi"
|
|
# Ensure .po file is newer.
|
|
touch "po/doc/guix-manual.${lang}.po"
|
|
fi
|
|
done
|
|
|
|
exec autoreconf -vfi
|