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.
|
|
|
|
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
|
|
|
|
|
2012-12-03 22:43:26 +01:00
|
|
|
exec autoreconf -vfi
|