view autogen.sh @ 26745:bfca30812918

test-fs-posix: Check for failed fs_read() error string
author Timo Sirainen <timo.sirainen@open-xchange.com>
date Sun, 01 Dec 2019 23:07:14 +0200
parents 2a706dcc5169
children
line wrap: on
line source

#!/bin/sh

# If you've non-standard directories, set these
ACLOCAL_DIR=m4
#GETTEXT_DIR=

ACLOCAL="aclocal -I$ACLOCAL_DIR"
export ACLOCAL

for dir in $GETTEXT_DIR /usr/share/gettext /usr/local/share/gettext; do
  if test -f $dir/config.rpath; then
    /bin/cp -f $dir/config.rpath .
    break
  fi
done

if test ! -f doc/wiki/Authentication.txt; then
  cd doc
  wget https://www.dovecot.org/tmp/wiki2-export.tar.gz
  tar xzf wiki2-export.tar.gz
  if [ $? != 0 ]; then
    echo "Failed to uncompress wiki docs"
    exit
  fi
  mv wiki2-export/*.txt wiki/
  rm -rf wiki2-export wiki2-export.tar.gz
  cd ..
fi

cd doc/wiki
cp -f Makefile.am.in Makefile.am
echo *.txt | sed 's, , \\/	,g' | tr '/' '\n' >> Makefile.am
cd ../..

autoreconf -i

rm -f ChangeLog