2024-08-19 13:08:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
src_folder="."
|
|
|
|
|
2024-11-24 10:22:37 +01:00
|
|
|
#wow_source_folder="retail"
|
|
|
|
wow_source_folder="classic_era"
|
2024-08-22 13:42:17 +02:00
|
|
|
|
|
|
|
#wow_destiny_folder="beta"
|
2024-11-24 10:22:37 +01:00
|
|
|
#wow_destiny_folder="retail"
|
|
|
|
wow_destiny_folder="classic_era"
|
2024-08-19 13:08:40 +02:00
|
|
|
|
|
|
|
# CLASSIC ERA
|
2024-08-22 13:42:17 +02:00
|
|
|
dest_folder="/Applications/World of Warcraft/_${wow_destiny_folder}_/Interface/AddOns/CzechQuests"
|
2024-08-19 13:08:40 +02:00
|
|
|
|
|
|
|
fswatch -o "$src_folder" | while read -r change; do
|
|
|
|
rsync -avu --delete "$src_folder" "$dest_folder" --exclude={'.*','*.png','*.sh','*.md','Quests/Data/**'}
|
2024-08-22 13:42:17 +02:00
|
|
|
rsync -au --delete "$src_folder/Quests/Data/$wow_source_folder/" "$dest_folder/Quests/Data/"
|
2024-08-19 13:08:40 +02:00
|
|
|
cp "$src_folder/Quests/Data/other.lua" "$dest_folder/Quests/Data/"
|
2024-08-22 13:42:17 +02:00
|
|
|
done
|