view autogen.sh @ 9644:d8220ad46879 HEAD

autogen.sh updated to use wiki1-export.tar.gz
author Timo Sirainen <tss@iki.fi>
date Wed, 11 May 2011 18:03:31 +0300
parents 44db0de1bbd3
children
line wrap: on
line source

#!/bin/sh

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

if test "$ACLOCAL_DIR" != ""; then
  ACLOCAL="aclocal -I $ACLOCAL_DIR"
  export ACLOCAL
fi

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 http://www.dovecot.org/tmp/wiki1-export.tar.gz
  tar xzf wiki1-export.tar.gz
  mv wiki1-export/*.txt wiki/
  rm -rf wiki1-export wiki1-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