libreoffice-online/autogen.sh
Henry Castro c254cc333b execute autogen.sh from a build directory
Change-Id: Ibd394549366d0059fe27696343870645e1e11947
2018-04-12 15:46:40 -04:00

35 lines
538 B
Bash
Executable file

#! /bin/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
}
libtoolize || failed "libtool"
aclocal || failed "aclocal"
autoheader || failed "autoheader"
automake --add-missing || failed "automake"
autoreconf || failed "autoreconf"
cat << EOF
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
EOF
cd "$olddir"