-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev.sh
35 lines (27 loc) · 1.86 KB
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
echo "Building PetPet and installing to WoW directory."
echo "Creating TOC file..."
touch PetPet.toc.tmp
cat PetPet.toc >PetPet.toc.tmp
sed -i "s/@project-version@/$(git describe --abbrev=0)/g" PetPet.toc.tmp
echo "Copying assets to Retail..."
mkdir -p /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_retail_/Interface/AddOns/PetPet/
cp *.lua /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_retail_/Interface/AddOns/PetPet/
cp PetPet.toc.tmp /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_retail_/Interface/AddOns/PetPet/PetPet.toc
echo "Copying assets to Classic..."
mkdir -p /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_/Interface/AddOns/PetPet/
cp *.lua /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_/Interface/AddOns/PetPet/
cp PetPet.toc.tmp /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_/Interface/AddOns/PetPet/PetPet.toc
echo "Copying assets to Classic PTR..."
mkdir -p /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_ptr_/Interface/AddOns/PetPet/
cp *.lua /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_ptr_/Interface/AddOns/PetPet/
cp PetPet.toc.tmp /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_classic_ptr_/Interface/AddOns/PetPet/PetPet.toc
echo "Copying assets to Retail PTRs..."
mkdir -p /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_xptr_/Interface/AddOns/PetPet/
cp *.lua /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_xptr_/Interface/AddOns/PetPet/
cp PetPet.toc.tmp /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_xptr_/Interface/AddOns/PetPet/PetPet.toc
mkdir -p /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_ptr_/Interface/AddOns/PetPet/
cp *.lua /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_ptr_/Interface/AddOns/PetPet/
cp PetPet.toc.tmp /c/Program\ Files\ \(x86\)/World\ of\ Warcraft/_ptr_/Interface/AddOns/PetPet/PetPet.toc
echo "Cleaning up..."
rm PetPet.toc.tmp
echo "Complete."