5 |
rem to their expected location. |
rem to their expected location. |
6 |
rem |
rem |
7 |
rem The default behavior is only to copy not existing files. If you |
rem The default behavior is only to copy not existing files. If you |
8 |
rem want to completly reset you configuration (in case of a partially |
rem want to completely reset you configuration (in case of a partially |
9 |
rem deleted or damaged configuration) you can use the command parameter |
rem deleted or damaged configuration) you can use the command parameter |
10 |
rem "/reset" to overwrite all files with their default. |
rem "/reset" to overwrite all files with their default. |
11 |
rem |
rem |
28 |
|
|
29 |
setlocal |
setlocal |
30 |
|
|
31 |
|
rem *** Folder where to find the defaults *** |
32 |
set SOURCE_DIR=defaults |
set SOURCE_DIR=defaults |
33 |
|
|
34 |
|
if "%1"=="/?" goto help_mess |
35 |
rem *** Reset mode >> Overwrite without confirm *** |
rem *** Reset mode >> Overwrite without confirm *** |
36 |
if "%1"=="/init" (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y |
if "%1"=="/init" (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y |
37 |
if "%1"=="/init" goto overwrite |
if "%1"=="/init" goto overwrite |
40 |
rem *** Default mode >> only copy not existing files *** |
rem *** Default mode >> only copy not existing files *** |
41 |
goto no_overwrite |
goto no_overwrite |
42 |
|
|
43 |
|
rem ************************ Print help message ************************ |
44 |
|
:help_mess |
45 |
|
echo. |
46 |
|
echo. "initXulu.bat [/update | /init | /reset]" |
47 |
|
echo. |
48 |
|
echo. Initializes the XULU folder structure after the first checkout |
49 |
|
echo. or after main releases (e.g. new plugins). The following options |
50 |
|
echo. are available: |
51 |
|
echo. |
52 |
|
echo. /update Updates only not existing files |
53 |
|
echo. /reset Updates all files but prompts for overwrite |
54 |
|
echo. /init Updates all files WITHOUT prompting for overwrite |
55 |
|
echo. Only recommended after a destroyed configuration |
56 |
|
echo. |
57 |
|
echo. Default is: /update |
58 |
|
echo. |
59 |
|
goto finish |
60 |
|
|
61 |
|
|
62 |
rem ************************** Update routine ************************** |
rem ************************** Update routine ************************** |
63 |
:no_overwrite |
:no_overwrite |
64 |
echo. |
echo. |