--- trunk/initXulu.bat 2009/02/25 20:26:41 7 +++ trunk/initXulu.bat 2009/02/28 14:17:27 18 @@ -1,11 +1,11 @@ -@echo off +@echo off rem ===================================================================== rem Initializes the XULU folder structure after the first SVN checkout rem by copying default configuration files from the "defaults" folder rem to their expected location. rem rem The default behavior is only to copy not existing files. If you -rem want to completly reset you configuration (in case of a partially +rem want to completely reset you configuration (in case of a partially rem deleted or damaged configuration) you can use the command parameter rem "/reset" to overwrite all files with their default. rem @@ -28,8 +28,10 @@ setlocal +rem *** Folder where to find the defaults *** set SOURCE_DIR=defaults +if "%1"=="/?" goto help_mess rem *** Reset mode >> Overwrite without confirm *** if "%1"=="/init" (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y if "%1"=="/init" goto overwrite @@ -38,6 +40,25 @@ rem *** Default mode >> only copy not existing files *** goto no_overwrite +rem ************************ Print help message ************************ +:help_mess +echo. +echo. "initXulu.bat [/update | /init | /reset]" +echo. +echo. Initializes the XULU folder structure after the first checkout +echo. or after main releases (e.g. new plugins). The following options +echo. are available: +echo. +echo. /update Updates only not existing files +echo. /reset Updates all files but prompts for overwrite +echo. /init Updates all files WITHOUT prompting for overwrite +echo. Only recommended after a destroyed configuration +echo. +echo. Default is: /update +echo. +goto finish + + rem ************************** Update routine ************************** :no_overwrite echo.