-
Notifications
You must be signed in to change notification settings - Fork 6
/
InstallDebugLibs.cmd
62 lines (34 loc) · 1.46 KB
/
InstallDebugLibs.cmd
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
REM ***************************************************************************
REM Change these paths as needed
set CurrDir=%cd%
set QGIS_Plugin_Dir=%cd%/../QGISPlugin
set DLLdir=%QGIS_Plugin_Dir%/win/DLLs
set Installdir=%QGIS_Plugin_Dir%/win/Install/Install_Debug
if not exist "%QGIS_Plugin_Dir%" (echo "Could not find QGIS directory %QGIS_Plugin_Dir% set is manually" & goto error)
echo Current directory: %CurrDir%
REM Copy over the dll dependency directory
copy "%DLLdir%" %CurrDir%\
if errorlevel 1 (echo "Could not copy DLLs from %DLLdir%" & goto error)
REM Copy over the plugins directory
xcopy "%Installdir%/plugins" "%CurrDir%/plugins" /e /i /h /y
if errorlevel 1 (echo "Could not copy plugins folder" & goto error)
REM Copy over the qgis dlls
copy "%Installdir%/bin" %CurrDir%\
if errorlevel 1 (echo "Could not copy qgis dlls from %Installdir%/bin" & goto error)
REM Copy over the i18n directory
xcopy "%Installdir%/i18n" "%CurrDir%/i18n" /e /i /h /y
if errorlevel 1 (echo "Could not copy i18n folder" & goto error)
REM Copy over the resources directory
xcopy "%Installdir%/resources" "%CurrDir%/resources" /e /i /h /y
if errorlevel 1 (echo "Could not copy resources folder" & goto error)
REM Copy over the svg directory
xcopy "%Installdir%/svg" "%CurrDir%/svg" /e /i /h /y
if errorlevel 1 (echo "Could not copy svg folder" & goto error)
goto end
:error
echo ERROR %ERRORLEVEL%: %DATE% %TIME%
exit /b 1
:end
echo FINISHED: %DATE% %TIME%
endlocal