Browse Source

speed up install when already generated dumps

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
ee7cdf87ef
  1. 11
      webapp/install-mts.sh

11
webapp/install-mts.sh

@ -338,12 +338,21 @@ fi
popd popd
settings_dump="`pwd`/settings-dump.txt" settings_dump="`pwd`/settings-dump.txt"
settings_types_list="`pwd`/settingstypes-list.txt" settings_types_list="`pwd`/settingstypes-list.txt"
echo "Creating $settings_dump..."
#grep -r `pwd`/linux-minetest-kit/minetest/games/Bucket_Game -e "setting_get" > $settings_dump #grep -r `pwd`/linux-minetest-kit/minetest/games/Bucket_Game -e "setting_get" > $settings_dump
pushd linux-minetest-kit/minetest/games pushd linux-minetest-kit/minetest/games
if [ ! -f "$settings_dump" ]; then
echo "Creating $settings_dump..."
grep -r Bucket_Game -e "setting_get" > $settings_dump grep -r Bucket_Game -e "setting_get" > $settings_dump
grep -r Bucket_Game -e "minetest.settings:get" >> $settings_dump grep -r Bucket_Game -e "minetest.settings:get" >> $settings_dump
else
echo "* $settings_dump was already created"
fi
if [ ! -f "$settings_types_list" ]; then
echo "Creating $settings_types_list..."
find Bucket_Game -name "settingtypes.txt" > $settings_types_list find Bucket_Game -name "settingtypes.txt" > $settings_types_list
else
echo "* $settings_types_list was already created"
fi
popd popd
echo "Done." echo "Done."
echo echo

Loading…
Cancel
Save