Where we build out of source, the source directory was _srcdist and
the build directory was _build. That gives the same nesting level for
both, which doesn't quite exercise all aspects of relative back
references from build to source tree.
Changing the build tree to be in _build/tree will challenge back
references a bit more, and ensure a bit more that we got it right.
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11186)
- if [ -n "$DESTDIR" ]; then
sh .travis-create-release.sh $TRAVIS_OS_NAME;
tar -xzf _srcdist.tar.gz;
- mkdir _build;
- cd _build;
- srcdir=../_srcdist;
- top=..;
+ mkdir -p _build/tree;
+ cd _build/tree;
+ srcdir=../../_srcdist;
+ top=../..;
else
srcdir=.;
top=.;
fi
- top=${PWD}
- if [ -n "$DESTDIR" ]; then
- cd _build;
+ cd _build/tree;
fi
- if ! $make update; then
echo -e '\052\052 FAILED -- MAKE UPDATE';