libreoffice-online/autogen.sh
Gleb Popov fed8ed59a4 Use portable /usr/bin/env bash shebang, instead of /bin/bash one.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I196c8747d9c88991bd0352849113748f8ea1294d
2020-12-17 11:52:18 +00:00

41 lines
816 B
Bash
Executable file

#! /usr/bin/env bash
srcdir=`dirname $0`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
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
aclocal || failed "aclocal"
autoheader || failed "autoheader"
automake --add-missing || failed "automake"
autoreconf || failed "autoreconf"
scripts/refresh-git-hooks || failed "refresh-git-hooks"
cat << EOF
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
EOF
cd "$olddir"