ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen#!/bin/sh
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen# If you've non-standard directories, set these
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiACLOCAL_DIR=m4
497bf5aec8a81e310077f74bc4d8025c50ec32f7Timo Sirainen#GETTEXT_DIR=
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiACLOCAL="aclocal -I$ACLOCAL_DIR"
4f8b89b40da847baa15786b63433db5bda2291beTimo Sirainenexport ACLOCAL
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen
e3c764ab3e2ac1dbd40901ebee465b76c20a5492Timo Sirainenfor dir in $GETTEXT_DIR /usr/share/gettext /usr/local/share/gettext; do
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen if test -f $dir/config.rpath; then
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen /bin/cp -f $dir/config.rpath .
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen break
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen fi
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainendone
ec4e08ad363aa5057faa4886f4c195c56b85140aTimo Sirainen
b2beb16ee34ad2aa255e0e65a34bf5f53f4971bcTimo Sirainenif test ! -f doc/wiki/Authentication.txt; then
2063a1ca5ca5fdbb46dacde43cf01668bdff42cbTimo Sirainen cd doc
be569425db01f78e54ead0d622c5a648c75500b5Aki Tuomi wget https://www.dovecot.org/tmp/wiki2-export.tar.gz
54a2d64e3563e29a5b9dc4a5d88c1a592efa4415Timo Sirainen tar xzf wiki2-export.tar.gz
57e37b6abc188ac48a6ea0a5b679704d38bfb56aTimo Sirainen if [ $? != 0 ]; then
57e37b6abc188ac48a6ea0a5b679704d38bfb56aTimo Sirainen echo "Failed to uncompress wiki docs"
57e37b6abc188ac48a6ea0a5b679704d38bfb56aTimo Sirainen exit
57e37b6abc188ac48a6ea0a5b679704d38bfb56aTimo Sirainen fi
54a2d64e3563e29a5b9dc4a5d88c1a592efa4415Timo Sirainen mv wiki2-export/*.txt wiki/
54a2d64e3563e29a5b9dc4a5d88c1a592efa4415Timo Sirainen rm -rf wiki2-export wiki2-export.tar.gz
2063a1ca5ca5fdbb46dacde43cf01668bdff42cbTimo Sirainen cd ..
2063a1ca5ca5fdbb46dacde43cf01668bdff42cbTimo Sirainenfi
2063a1ca5ca5fdbb46dacde43cf01668bdff42cbTimo Sirainen
8011a39cfcc28fb35a13ab3816300a3d8468ce49Timo Sirainencd doc/wiki
8011a39cfcc28fb35a13ab3816300a3d8468ce49Timo Sirainencp -f Makefile.am.in Makefile.am
8011a39cfcc28fb35a13ab3816300a3d8468ce49Timo Sirainenecho *.txt | sed 's, , \\/ ,g' | tr '/' '\n' >> Makefile.am
8011a39cfcc28fb35a13ab3816300a3d8468ce49Timo Sirainencd ../..
8011a39cfcc28fb35a13ab3816300a3d8468ce49Timo Sirainen
7616ada63410fefe5b5f24f1f0b060a2d932556fTimo Sirainenautoreconf -i
5c7c62f1e68d6c5f05a630d6a5ceae2d9d47e580Aki Tuomi
5c7c62f1e68d6c5f05a630d6a5ceae2d9d47e580Aki Tuomirm -f ChangeLog