Commit | Line | Data |
---|---|---|
b49ffe2d | 1 | #!/bin/sh |
9ac97e83 | 2 | # Create the build system. |
b49ffe2d LC |
3 | |
4 | set -e -x | |
9ca5ff88 MÁAV |
5 | |
6 | # Generate stubs for translations. | |
7 | langs=`find po/doc -type f -name '*.po' \ | |
8 | | sed -e 's,guix-manual\.,,' \ | |
9 | | xargs -n 1 -I{} basename {} .po` | |
10 | for lang in ${langs}; do | |
11 | if [ ! -e "doc/guix.${lang}.texi" ]; then | |
12 | echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" | |
13 | echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi" | |
14 | # Ensure .po file is newer. | |
15 | touch "po/doc/guix-manual.${lang}.po" | |
16 | fi | |
17 | done | |
18 | ||
b49ffe2d | 19 | exec autoreconf -vfi |