|
version 1.1, 2012/02/17 15:09:30
|
version 1.1.1.3, 2021/03/17 00:32:36
|
|
Line 4
|
Line 4
|
| # then transfer control to the configure.sh script to do the real work. |
# then transfer control to the configure.sh script to do the real work. |
| |
|
| dir=`dirname $0` |
dir=`dirname $0` |
| realconfigure="$dir/configure.sh" | if test x"$dir" = x; then |
| | dir=. |
| | fi |
| |
|
| if test ! -f "$realconfigure"; then | if test "$dir" = '.'; then |
| if test -f "$HOME/build_farm/build_test.fns"; then | branch=`packaging/prep-auto-dir` || exit 1 |
| # Allow the build farm to grab latest files via rsync. | if test x"$branch" != x; then |
| actions='build fetch' | cd build || exit 1 |
| else | dir=.. |
| actions='build' | |
| fi |
fi |
| if "$dir/prepare-source" $actions; then | fi |
| : | |
| else | if test ! -f configure.sh; then |
| | if ! "$dir/prepare-source" build; then |
| echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2 |
echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2 |
| rm -f "$realconfigure" | rm -f configure.sh |
| exit 1 |
exit 1 |
| fi |
fi |
| fi |
fi |
| |
|
| exec "$realconfigure" "${@}" | exec ./configure.sh --srcdir="$dir" "${@}" |