Improving environment plugin update by recursively updating all projects under Unreal/Environments folder

This commit is contained in:
xubeyb 2022-05-17 12:09:24 +03:00
Родитель e8c7ea362b
Коммит 696d09da3e
1 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -134,10 +134,13 @@ rsync -a --delete MavLinkCom/include AirLib/deps/MavLinkCom
rsync -a --delete AirLib Unreal/Plugins/AirSim/Source rsync -a --delete AirLib Unreal/Plugins/AirSim/Source
rm -rf Unreal/Plugins/AirSim/Source/AirLib/src rm -rf Unreal/Plugins/AirSim/Source/AirLib/src
# Update Blocks project # Update all environment projects
Unreal/Environments/Blocks/clean.sh for d in Unreal/Environments/* ; do
mkdir -p Unreal/Environments/Blocks/Plugins [ -L "${d%/}" ] && continue
rsync -a --delete Unreal/Plugins/AirSim Unreal/Environments/Blocks/Plugins $d/clean.sh
mkdir -p $d/Plugins
rsync -a --delete Unreal/Plugins/AirSim $d/Plugins
done
set +x set +x
@ -146,11 +149,9 @@ echo ""
echo "==================================================================" echo "=================================================================="
echo " AirSim plugin is built! Here's how to build Unreal project." echo " AirSim plugin is built! Here's how to build Unreal project."
echo "==================================================================" echo "=================================================================="
echo "If you are using Blocks environment, its already updated." echo "All environments under Unreal/Environments have been updated."
echo "If you are using your own environment, update plugin using,"
echo "rsync -a --delete Unreal/Plugins path/to/MyUnrealProject"
echo "" echo ""
echo "For help see:" echo "For further info see:"
echo "https://github.com/Microsoft/AirSim/blob/master/docs/build_linux.md" echo "https://github.com/Microsoft/AirSim/blob/master/docs/build_linux.md"
echo "==================================================================" echo "=================================================================="