libreoffice-online/autogen.sh

42 lines
808 B
Bash
Raw Normal View History

2016-04-12 03:09:29 -05:00
#! /bin/bash
srcdir=`dirname $0`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
2016-04-12 03:09:29 -05:00
function failed {
cat << EOF 1>&2
Result: $1 failed
Please try running the commands from autogen.sh manually, and fix errors.
EOF
exit 1
}
if test `uname -s` = Linux -o `uname -s` = FreeBSD; then
libtoolize || failed "libtool"
elif test `uname -s` = Darwin; then
libtoolize || glibtoolize || failed "Can't find libtoolize or glibtoolize. Use lode or install it yourself."
fi
2016-04-12 03:09:29 -05:00
aclocal || failed "aclocal"
2016-04-12 03:09:29 -05:00
autoheader || failed "autoheader"
automake --add-missing || failed "automake"
autoreconf || failed "autoreconf"
scripts/refresh-git-hooks || failed "refresh-git-hooks"
2016-04-12 03:09:29 -05:00
cat << EOF
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
2016-04-12 03:09:29 -05:00
EOF
cd "$olddir"