Browse Source

Prevent false detection of minetest as compiled.

master
poikilos 5 years ago
parent
commit
d36abc1cbd
  1. 13
      install-mts.sh

13
install-mts.sh

@ -131,7 +131,16 @@ fi
#exit 1
#fi
enable_compile=true
if [ -d minetest ]; then
flag_mts="$extracted_path/minetest/bin/minetestserver"
flag_mt="$extracted_path/minetest/bin/minetest"
has_any_binary=false
if [ -f "$flag_mts" ]; then
has_any_binary=true
fi
if [ -f "$flag_mt" ]; then
has_any_binary=true
fi
if [ "@$has_any_binary" == "@true" ]; then
enable_compile=false
if [ "@$enable_client" = "@true" ]; then
if [ ! -f minetest/bin/minetest ]; then
@ -146,7 +155,7 @@ if [ -d minetest ]; then
fi
fi
else
echo "* enabling compile since missing `pwd`/minetest directory"
echo "* enabling compile since neither \"$flag_mts\" nor \"$flag_mt\" are present."
fi
if [ "@$enable_compile" = "@true" ]; then
echo "* checking if the compile library script extracted the program source yet ($flag_dir)..."

Loading…
Cancel
Save