/
copy_visuals.cmd
35 lines (28 loc) · 1014 Bytes
/
copy_visuals.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
@echo off
echo .
echo Backup of the dokuwiki pages that serves as visual into the directory %WEB_COMPO_VISUAL_BACKUP%
echo .
echo .
SET SCRIPT_PATH=%~dp0
SET WEB_COMPO_VISUAL_BACKUP=%SCRIPT_PATH%doc
echo Deleting the git doc directory (%WEB_COMPO_VISUAL_BACKUP%) :
call rmdir /S /Q %WEB_COMPO_VISUAL_BACKUP%
SET DOKU_ROOT=%SCRIPT_PATH%..\..\..
SET DOKU_DATA=%DOKU_ROOT%\dataweb
SET WEB_COMPO_VISUAL_PAGES=%DOKU_DATA%\pages
SET WEB_COMPO_VISUAL_PAGES_DST=%WEB_COMPO_VISUAL_BACKUP%\pages
echo Copying the pages:
echo * from %WEB_COMPO_VISUAL_PAGES%
echo * to %WEB_COMPO_VISUAL_PAGES_DST%
echo .
call xcopy %WEB_COMPO_VISUAL_PAGES% %WEB_COMPO_VISUAL_PAGES_DST% /S /E /H /Y /I
echo .
SET WEB_COMPO_VISUAL_MEDIAS=%DOKU_DATA%\media
SET WEB_COMPO_VISUAL_MEDIAS_DST=%WEB_COMPO_VISUAL_BACKUP%\media
echo Copying the images:
echo * from %WEB_COMPO_VISUAL_MEDIAS%
echo * to %WEB_COMPO_VISUAL_MEDIAS_DST%
echo .
call xcopy %WEB_COMPO_VISUAL_MEDIAS% %WEB_COMPO_VISUAL_MEDIAS_DST% /S /E /H /Y /I
echo .
echo Done