#!/usr/bin/fish if test -z $GD_SHOW_PROJECTS echo "List your Godot project folder in env var GD_SHOW_PROJECTS (separated by spaces)" exit 1 end set SRC_FOLDER ./godot/addons/slide_show if not test -d $SRC_FOLDER echo "This script should run in the Git Root folder" exit 2 end for f in $GD_SHOW_PROJECTS echo "install GodotSlideShowPlugin in : $f" if not test -d $f echo "directory expected : $f" exit 3 end if not test -f $f/project.godot echo "project.godot expected in : $f" exit 4 end mkdir --parents $f/addons/slide_show rsync --delete --recursive --verbose $SRC_FOLDER $f/addons/ end