#!/bin/sh
# Create the build system.

set -e -x

# Generate stubs for translations.
langs=`find po/doc -type f -name 'guix-manual*.po' \
        | sed -e 's,.*/guix-manual\.,,;s,\.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
langs=`find po/doc -type f -name 'guix-cookbook*.po' \
        | sed -e 's,.*/guix-cookbook\.,,;s,\.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

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
gnu: openvpn: Update to 2.4.8....Tobias Geerinckx-Rice 2019-11-02gnu: vlc: Fix build....Nicolas Goaziou 2019-11-02gnu: hangups: Fix build....Tobias Geerinckx-Rice 2019-11-02gnu: Add emacs-tramp-auto-auth....Oleg Pykhalov 2019-11-02gnu: emacs-evil-collection: Update to 20191102....Pierre Neidhardt 2019-11-02gnu: Add emacs-unfill....Pierre Neidhardt 2019-11-02news: Add 'de' translation....Florian Pelz 2019-11-02gnu: git: Add PCRE support to "git grep"....Pierre Neidhardt 2019-11-02gnu: dxvk: Fix inputs and configure flag expansion....Pierre Neidhardt 2019-11-01gnu: asciinema: Update to 2.0.2....Alex Griffin 2019-11-01gnu: emacs-adoc-mode: Enable tests....Maxim Cournoyer 2019-11-02gnu: padthv1: Update to 0.9.11....Tobias Geerinckx-Rice 2019-11-02gnu: drumkv1: Update to 0.9.11....Tobias Geerinckx-Rice 2019-11-02gnu: samplv1: Update to 0.9.11....Tobias Geerinckx-Rice 2019-11-02gnu: synthv1: Update to 0.9.11....Tobias Geerinckx-Rice 2019-11-02gnu: rdup: Fix build, disable encryption....Tobias Geerinckx-Rice 2019-11-02gnu: rdup: Don't use unstable tarball....Tobias Geerinckx-Rice 2019-11-02gnu: mpd-mpc: Update to 0.33....Tobias Geerinckx-Rice 2019-11-02gnu: colord: Record the file name of the "sqlite3" command....Ludovic Courtès 2019-11-02services: dbus: Remove non-existent directories from 'system-local.conf'....Ludovic Courtès 2019-11-02services: dbus: Include each service's "share/dbus-1/system.d"....Ludovic Courtès 2019-11-02gnu: glib: Add comment about disallowed references....Ludovic Courtès 2019-11-01gnu: leveldb: Update home page....Tobias Geerinckx-Rice 2019-11-01gnu: samba: Update to 4.11.2....Tobias Geerinckx-Rice 2019-11-01gnu: yad: Update to 5.0....Tobias Geerinckx-Rice 2019-11-01gnu: prosody: Update to 0.11.3....Clément Lassieur 2019-11-01gnu: qbittorrent: Update to 4.1.9.1....Tobias Geerinckx-Rice 2019-11-01gnu: di: Update to 4.47.2....Tobias Geerinckx-Rice 2019-11-01gnu: x265: Update to 3.2.1....Tobias Geerinckx-Rice 2019-11-01gnu: skopeo: Update to 0.1.40....Tobias Geerinckx-Rice 2019-11-01gnu: Deprecate monolithic Qt 5.x package....Hartmut Goebel 2019-11-01gnu: Remove qtdeclarative-render2d....Hartmut Goebel 2019-11-01gnu: sigrok-firmware-fx2lafw: Fix build....Clément Lassieur 2019-11-01gnu: geany: Update to 1.36....Nicolas Goaziou 2019-11-01gnu: mame: Update to 0.215....Nicolas Goaziou 2019-11-01gnu: libreoffice: Update to 6.3.3.2....Efraim Flashner 2019-11-01pull: Gracefully handle invalid Texinfo markup in news....Ludovic Courtès 2019-11-01services: colord: Deprecate 'colord-service' procedure....Ludovic Courtès 2019-11-01gnu: snap: Update to 5.2.5....Nicolas Goaziou 2019-11-01gnu: scintilla: Update to 4.2.1....Nicolas Goaziou 2019-11-01gnu: rclone: Update to 1.50.0....Nicolas Goaziou 2019-11-01gnu: fet: Update to 5.40.2....Nicolas Goaziou 2019-11-01gnu: asymptote: Update to 2.59....Nicolas Goaziou 2019-11-01gnu: musescore: Update to 3.3....Nicolas Goaziou 2019-10-31services: ntp: Fix a crash when using legacy configuration....Maxim Cournoyer