| 1 | #!/bin/sh |
| 2 | # Create the build system. |
| 3 | |
| 4 | set -e -x |
| 5 | |
| 6 | # Generate stubs for translations. |
| 7 | langs=`find po/doc -type f -name 'guix-manual*.po' \ |
| 8 | | sed -e 's,.*/guix-manual\.,,;s,\.po$,,'` |
| 9 | for lang in ${langs}; do |
| 10 | if [ ! -e "doc/guix.${lang}.texi" ]; then |
| 11 | echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" |
| 12 | echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi" |
| 13 | # Ensure .po file is newer. |
| 14 | touch "po/doc/guix-manual.${lang}.po" |
| 15 | fi |
| 16 | done |
| 17 | langs=`find po/doc -type f -name 'guix-cookbook*.po' \ |
| 18 | | sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'` |
| 19 | for lang in ${langs}; do |
| 20 | if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then |
| 21 | echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi" |
| 22 | # Ensure .po file is newer. |
| 23 | touch "po/doc/guix-cookbook.${lang}.po" |
| 24 | fi |
| 25 | done |
| 26 | |
| 27 | autoreconf -vfi |
| 28 | |
| 29 | # Replace Automake's build-aux/mdate-sh with build-aux/mdate-from-git, our |
| 30 | # own, reproducible version. |
| 31 | chmod +w build-aux/mdate-sh |
| 32 | rm -f build-aux/mdate-sh |
| 33 | ln -s mdate-from-git.scm build-aux/mdate-sh |