addon/.support/sync.sh

31 lines
754 B
Bash
Raw Permalink Normal View History

2024-08-19 13:08:40 +02:00
#!/bin/bash
2025-03-10 13:32:44 +01:00
wow_source_folder="retail"
wow_destiny_folder="retail"
2024-08-19 13:08:40 +02:00
2025-03-10 13:32:44 +01:00
# wow_source_folder="beta"
# wow_destiny_folder="retail"
2025-03-10 13:32:44 +01:00
# wow_source_folder="classic_era"
# wow_destiny_folder="classic_era"
2024-08-19 13:08:40 +02:00
2025-03-10 13:32:44 +01:00
src_folder="$(pwd)/./"
dest_folder="/Applications/World of Warcraft/_${wow_destiny_folder}_/Interface/AddOns/CzechQuests"
2024-08-19 13:08:40 +02:00
2025-03-10 13:32:44 +01:00
mkdir -p "$dest_folder/Addon/Data/"
2024-08-19 13:08:40 +02:00
fswatch -o "$src_folder" | while read -r change; do
2025-03-10 13:32:44 +01:00
rsync -auv --delete \
"$src_folder/Addon/Data/$wow_source_folder/" \
"$dest_folder/Addon/Data/"
cp "$src_folder/Addon/Data/other.lua" "$dest_folder/Addon/Data/"
2025-03-09 09:02:31 +01:00
2025-03-10 13:32:44 +01:00
rsync -auv --delete \
--exclude '.*' \
--exclude 'Addon/Data/**' \
--exclude 'lib/**' \
--exclude 'Jenkinsfile' \
"$src_folder" "$dest_folder"
done