addon/sync.sh

19 lines
No EOL
621 B
Bash

#!/bin/bash
src_folder="."
wow_source_folder="retail"
#wow_source_folder="classic_era"
#wow_destiny_folder="beta"
wow_destiny_folder="retail"
#wow_destiny_folder="classic_era"
# CLASSIC ERA
dest_folder="/Applications/World of Warcraft/_${wow_destiny_folder}_/Interface/AddOns/CzechQuests"
fswatch -o "$src_folder" | while read -r change; do
rsync -avu --delete "$src_folder" "$dest_folder" --exclude={'.*','*.png','*.sh','*.md','Quests/Data/**'}
rsync -au --delete "$src_folder/Quests/Data/$wow_source_folder/" "$dest_folder/Quests/Data/"
cp "$src_folder/Quests/Data/other.lua" "$dest_folder/Quests/Data/"
done