2012-12-03 21:43:26 +00:00
|
|
|
#!/bin/sh
|
2014-12-19 22:18:49 +00:00
|
|
|
# Create the build system.
|
2012-12-03 21:43:26 +00:00
|
|
|
|
|
|
|
set -e -x
|
2019-04-23 09:30:32 +00:00
|
|
|
|
|
|
|
# Generate stubs for translations.
|
2019-09-08 12:35:44 +00:00
|
|
|
langs=`find po/doc -type f -name 'guix-manual*.po' \
|
2019-04-23 09:30:32 +00:00
|
|
|
| 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
|
2019-09-08 12:35:44 +00:00
|
|
|
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
|
2020-02-17 10:48:50 +00:00
|
|
|
| sed -e 's,guix-cookbook\.,,' \
|
2019-09-08 12:35:44 +00:00
|
|
|
| xargs -n 1 -I{} basename {} .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"
|
|
|
|
# Ensure .po file is newer.
|
|
|
|
touch "po/doc/guix-cookbook.${lang}.po"
|
|
|
|
fi
|
|
|
|
done
|
2019-04-23 09:30:32 +00:00
|
|
|
|
2012-12-03 21:43:26 +00:00
|
|
|
exec autoreconf -vfi
|