This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
42 lines (35 loc) · 1.68 KB
/
Makefile
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
36
37
38
39
40
41
42
VERSION = $(shell git rev-parse --abbrev-ref HEAD)
BUILD_DIR = $(shell pwd)/build
all: clean enUS koKR frFR deDE zhCN esES ruRU
clean:
rm -rf build
db:
cd ./database && php ./itemDB.php
cd ./database && php ./questDB.php
cd ./database && php ./vendorDB.php
cd ./database && php ./spawnDB.php
# cd ./database && php ./zoneDB_deprecated.php
enUS koKR frFR deDE zhCN esES ruRU:
# create dir
install -d release
# build shagudb
install -d build/$@/ShaguDB/db
cp -rf resources/Cartographer build/$@
cp -rf resources/ShaguQuest build/$@
cp resources/zoneDB.lua_$@ build/$@/ShaguDB/db/zoneDB.lua
cp resources/spawnDB.lua_$@ build/$@/ShaguDB/db/spawnDB.lua
cp resources/itemDB.lua_$@ build/$@/ShaguDB/db/itemDB.lua
cp resources/questDB.lua_$@ build/$@/ShaguDB/db/questDB.lua
cp resources/vendorDB.lua_$@ build/$@/ShaguDB/db/vendorDB.lua
cp -rf resources/img resources/symbols ShaguDB*.lua ShaguDB.toc build/$@/ShaguDB
sed -i "s/oooVersionooo/$(VERSION)/g" build/$@/ShaguDB/ShaguDB*
sed -i "s/oooLocaleooo/$@/g" build/$@/ShaguDB/ShaguDB*
cd build/$@ && zip -qr9 ../../release/ShaguDB-$(VERSION)[email protected] *
# symlink to test environment
install -d ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns
rm -rf ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/ShaguDB
rm -rf ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/ShaguQuest
rm -rf ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/Cartographer
ln -sf $(BUILD_DIR)/$@/ShaguDB ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/ShaguDB
ln -sf $(BUILD_DIR)/$@/ShaguQuest ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/ShaguQuest
ln -sf $(BUILD_DIR)/$@/Cartographer ~/games/wow-locales/WoW-1.12.1-$@/Interface/AddOns/Cartographer