check install automake and auto conf

This commit is contained in:
mix 2018-10-20 11:21:44 +03:30
parent f44d0f387b
commit bf712b3ecf

View File

@ -1,5 +1,9 @@
#!/bin/sh
checkInstalled () {
which "$1" || { echo "$1 not installed"; exit 0; }
}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
@ -8,6 +12,9 @@ set -x
cd $srcdir
checkInstalled "automake"
checkInstalled "autoconf"
aclocal -I m4macros \
&& autoheader \
&& automake --gnu --add-missing \