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
|
|
|
|
2024-04-14 03:42:25 -04:00
|
|
|
autoreconf -vfi
|
|
|
|
|
|
|
|
# Replace Automake's build-aux/mdate-sh with build-aux/mdate-from-git, our
|
|
|
|
# own, reproducible version.
|
|
|
|
chmod +w build-aux/mdate-sh
|
|
|
|
rm -f build-aux/mdate-sh
|
|
|
|
ln -s mdate-from-git.scm build-aux/mdate-sh
|