forked from ATTWoWAddon/AllTheThings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link_att.bat
32 lines (24 loc) · 1.34 KB
/
link_att.bat
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
:: Hard link retail ATT to PTR folder
:: This needs to be executed from the _retail_ folder!
:: This needs to be run as administrator, please execute it from the command line so you can see if there are any errors!
:: If you have previously run this script, you may need to manually remove the symbolic links first (delete them in file explorer in the destination folder, verify they didn't vanish in the source folder, if they did grab them from git again). Then run this script again and verify that all the links are in place.
@echo off
call :make_hardlinks "..\..\..\..\_ptr_\Interface\Addons\AllTheThings"
call :make_hardlinks "..\..\..\..\_xptr_\Interface\Addons\AllTheThings"
goto :EOF
:make_hardlinks
setlocal
set dest_folder=%1
set source_folder=%cd%
mkdir "%dest_folder%"
mklink /J "%dest_folder%\db" "%source_folder%\ptr_db"
mklink /J "%dest_folder%\assets" "%source_folder%\assets"
mklink /J "%dest_folder%\lib" "%source_folder%\lib"
mklink /J "%dest_folder%\locales" "%source_folder%\locales"
mklink /J "%dest_folder%\src" "%source_folder%\src"
mklink "%dest_folder%\AllTheThings.lua" "%source_folder%\AllTheThings.lua"
mklink "%dest_folder%\AllTheThings.toc" "%source_folder%\AllTheThings.toc"
mklink "%dest_folder%\Bindings.xml" "%source_folder%\Bindings.xml"
mklink "%dest_folder%\Settings.lua" "%source_folder%\Settings.lua"
endlocal
goto :EOF