/[xulu]/trunk.bakup/initXulu.bat
ViewVC logotype

Diff of /trunk.bakup/initXulu.bat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/initXulu.bat revision 7 by mojays, Wed Feb 25 20:26:41 2009 UTC trunk.bakup/initXulu.bat revision 77 by alfonx, Wed Feb 10 16:14:27 2010 UTC
# Line 1  Line 1 
1  @echo off  @echo off
2  rem =====================================================================  rem =====================================================================
3  rem  Initializes the XULU folder structure after the first SVN checkout  rem  Initializes the XULU folder structure after the first SVN checkout
4  rem  by copying default configuration files from the "defaults" folder  rem  by copying default configuration files from the "defaults" folder
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
# Line 28  rem ==================================== Line 28  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
# Line 38  if "%1"=="/reset" goto overwrite Line 40  if "%1"=="/reset" 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.

Legend:
Removed from v.7  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26