bootstrap: improved shell compatibility,

removed unneeded 'aclocal' execution,
removed '-f' autoreconf argument,
added wrapper script autogen.sh
This commit is contained in:
Evgeny Grin (Karlson2k)
2019-04-10 14:38:34 +03:00
parent 312713c363
commit 8b8c300312
2 changed files with 16 additions and 4 deletions
Executable
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# This file was added for compatibility with some automated build systems.
# It is recommended to use 'bootstrap' directly instead.
ag_srcdir="${0%/*}" && ag_srcdir="${ag_srcdir}${ag_srcdir:+/}"
"${ag_srcdir}bootstrap" ${1+"$@"}
+9 -4
View File
@@ -1,6 +1,11 @@
#!/bin/sh
if ! test -n "$BASH_SOURCE" || ! workdir="${BASH_SOURCE[0]%/*}" || ! test -n "$workdir" || ! cd "$workdir"; then
workdir=`dirname "$0"` && test -n "$workdir" && cd "$workdir" || echo "Warning: can't get working directory" 1>&2
unset bs_srcdir
if test X"`dirname / 2>/dev/null`" = X"/"; then
bs_scrdir=`dirname $0`
else
bs_scrdir="${0%/*}"
fi
aclocal -I m4 --install
autoreconf -I m4 -f -i
test -n "$bs_scrdir" && cd "$bs_scrdir" || echo "Warning: cannot get sources directory" 1>&2
autoreconf -I m4 -i ${1+"$@"}