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