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

Loading…
Cancel
Save