2012-12-03 16:43:26 -05:00
|
|
|
#!/bin/sh
|
2014-12-19 17:18:49 -05:00
|
|
|
# Create the build system.
|
2012-12-03 16:43:26 -05:00
|
|
|
|
|
|
|
set -e -x
|
2019-04-23 05:30:32 -04:00
|
|
|
|
|
|
|
# Generate stubs for translations.
|
2019-09-08 08:35:44 -04:00
|
|
|
langs=`find po/doc -type f -name 'guix-manual*.po' \
|
2021-05-30 13:29:04 -04:00
|
|
|
| sed -e 's,.*/guix-manual\.,,;s,\.po$,,'`
|
2019-04-23 05:30:32 -04:00
|
|
|
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 08:35:44 -04:00
|
|
|
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
|
2021-05-30 13:29:04 -04:00
|
|
|
| sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'`
|
2019-09-08 08:35:44 -04:00
|
|
|
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 05:30:32 -04:00
|
|
|
|
2012-12-03 16:43:26 -05:00
|
|
|
exec autoreconf -vfi
|