Browse Source

Fix mtbuild.rc detection.

master
poikilos 4 years ago
parent
commit
228b4ef1f1
  1. 8
      build-minetest-here.sh
  2. 8
      reset-minetest-install-source.sh

8
build-minetest-here.sh

@ -9,21 +9,27 @@ customExit(){
# echo
#fi
# cd $mybuild || customExit "$0: cd build failed in '`pwd`'."
printf "* detecting EnlivenMinetest..."
if [ -z "$ENLIVEN_REPO" ]; then
try_default_enliven_repo="$HOME/git/EnlivenMinetest"
for try_enliven_repo in "$HOME/Downloads/poikilos/EnlivenMinetest" "$HOME/Downloads/EnlivenMinetest" "$try_default_enliven_repo"
do
if [ -d "$try_enliven_repo" ]; then
ENLIVEN_REPO="$try_enliven_repo"
echo "Detected ENLIVEN_REPO=\"$try_enliven_repo\""
else
echo "Tried \"$try_enliven_repo\" (not found)"
fi
done
fi
source mtbuild.rc
if [ $? -ne 0 ]; then
source "$ENLIVEN_REPO/mtbuild.rc"
if [ $? -ne 0 ]; then
echo "Error:"
echo "source mtbuild.rc failed. Try adding it to the path or $try_default_enliven_repo (or set ENLIVEN_REPO)"
exit 1
fi
fi

8
reset-minetest-install-source.sh

@ -259,20 +259,28 @@ fi
if [ -z "$DEPS_INSTALL" ]; then
DEPS_INSTALL=
fi
printf "* detecting EnlivenMinetest..."
if [ -z "$ENLIVEN_REPO" ]; then
try_default_enliven_repo="$HOME/git/EnlivenMinetest"
for try_enliven_repo in "$HOME/Downloads/poikilos/EnlivenMinetest" "$HOME/Downloads/EnlivenMinetest" "$try_default_enliven_repo"
do
if [ -d "$try_enliven_repo" ]; then
ENLIVEN_REPO="$try_enliven_repo"
echo "Detected ENLIVEN_REPO=\"$try_enliven_repo\""
else
echo "Tried \"$try_enliven_repo\" (not found)"
fi
done
fi
source mtbuild.rc
if [ $? -ne 0 ]; then
source "$ENLIVEN_REPO/mtbuild.rc"
if [ $? -ne 0 ]; then
echo "Error:"
echo "source mtbuild.rc failed. Try adding it to the path or $try_default_enliven_repo (or set ENLIVEN_REPO)"
exit 1
fi
fi
if [ $mtLibrariesCompileResult -ne 0 ]; then
cat "$extracted_path/libraries.log"

Loading…
Cancel
Save