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

Annotation of /trunk/initXulu.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (hide annotations)
Wed Feb 25 20:26:41 2009 UTC (15 years, 9 months ago) by mojays
File MIME type: text/plain
File size: 7092 byte(s)
InitXulu.bat renamed to initXulu.bat
1 mojays 7 @echo off
2     rem =====================================================================
3     rem Initializes the XULU folder structure after the first SVN checkout
4     rem by copying default configuration files from the "defaults" folder
5     rem to their expected location.
6     rem
7     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
9     rem deleted or damaged configuration) you can use the command parameter
10     rem "/reset" to overwrite all files with their default.
11     rem
12     rem Summery:
13     rem - copy "DefaultProperties" to main folder
14     rem - copy Eclipse configuration to main folder
15     rem - .classpath
16     rem - .project
17     rem - copy "startXulu.bat" to main folder
18     rem - copy XULU registry files to main folder
19     rem - registry.xif
20     rem - registry_arrayGrid.xif
21     rem - registry_ProxyGrid.xif
22     rem - XULU plugin configurations
23     rem - plugin\GeoModelCodeGenerator\* to plugin folder
24     rem - plugin\GTVisualisationColorMapPlugin\* to plugin folder
25     rem - plugin\LoggerPlugin\* to plugin folder
26     rem - plugin\RasterCalculator\* to plugin folder
27     rem =====================================================================
28    
29     setlocal
30    
31     set SOURCE_DIR=defaults
32    
33     rem *** Reset mode >> Overwrite without confirm ***
34     if "%1"=="/init" (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y
35     if "%1"=="/init" goto overwrite
36     rem *** Update mode >> Overwrite with confirm ***
37     if "%1"=="/reset" goto overwrite
38     rem *** Default mode >> only copy not existing files ***
39     goto no_overwrite
40    
41     rem ************************** Update routine **************************
42     :no_overwrite
43     echo.
44     echo.The XULU configuration will be updated with new files...
45     echo.*** DefaultProperties ***
46     if not exist DefaultProperties (copy %SOURCE_DIR%\DefaultProperties .) else echo. 'DefaultProperties' skipped!
47     if not exist XuluProperties (copy %SOURCE_DIR%\XuluProperties .) else echo. 'XuluProperties' skipped!
48     echo.*** Eclipse configuration ***
49     if not exist .classpath (copy %SOURCE_DIR%\.classpath .) else echo. '.classpath' skipped!
50     if not exist .project (copy %SOURCE_DIR%\.project .) else echo. '.project' skipped!
51     echo.*** startXulu.bat ***
52     if not exist startXulu.bat (copy %SOURCE_DIR%\startXulu.bat .) else echo. 'startXulu.bat' skipped!
53     if not exist startXulu.sh (copy %SOURCE_DIR%\startXulu.sh .) else echo. 'startXulu.sh' skipped!
54     echo.*** sample XULU registry files ***
55     if not exist registry.xif (copy %SOURCE_DIR%\registry.xif .) else echo. 'registry.xif' skipped!
56     if not exist registry_arrayGrid.xif (copy %SOURCE_DIR%\registry_arrayGrid.xif .) else echo. 'registry_arrayGrid.xif' skipped!
57     if not exist registry_ProxyGrid.xif (copy %SOURCE_DIR%\registry_ProxyGrid.xif .) else echo. 'registry_ProxyGrid.xif' skipped!
58     echo.*** Plugin folder ***
59     if not exist plugin (mkdir plugin) else echo. 'plugin' folder already exists!
60     echo.*** Template files for GeoModelCodeGenerator plugin ***
61     set DDIR=plugin\GeoModelCodeGenerator
62     set SDIR=%SOURCE_DIR%\%DDIR%
63     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
64     if not exist %DDIR%\ModelContentManager.tpl (copy %SDIR%\ModelContentManager.tpl %DDIR%) else echo. 'ModelContentManager.tpl' skipped!
65     if not exist %DDIR%\StepModel.tpl (copy %SDIR%\StepModel.tpl %DDIR%) else echo. 'StepModel.tpl' skipped!
66     if not exist %DDIR%\XuluModel.tpl (copy %SDIR%\XuluModel.tpl %DDIR%) else echo. 'XuluModel.tpl' skipped!
67     echo.*** Template files for GTVisualisationColorMapPlugin ***
68     set DDIR=plugin\GTVisualisationColorMapPlugin
69     set SDIR=%SOURCE_DIR%\%DDIR%
70     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
71     if not exist %DDIR%\gtcolormaps.xif (copy %SDIR%\gtcolormaps.xif %DDIR%) else echo. 'gtcolormaps.xif' skipped!
72     echo.*** Template files for LoggerPlugin ***
73     set DDIR=plugin\LoggerPlugin
74     set SDIR=%SOURCE_DIR%\%DDIR%
75     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
76     if not exist %DDIR%\log4j.cfg (copy %SDIR%\log4j.cfg %DDIR%) else echo. 'log4j.cfg' skipped!
77     echo.*** Template files for LoggerPlugin ***
78     set DDIR=plugin\RasterCalculator
79     set SDIR=%SOURCE_DIR%\%DDIR%
80     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
81     if not exist %DDIR%\default_filter.inp (copy %SDIR%\default_filter.inp %DDIR%) else echo. 'default_filter.inp' skipped!
82    
83     goto finish
84    
85     rem ************************ Overwrite routine *************************
86     :overwrite
87     echo.
88     echo.The XULU configuration will be completly reset!!
89     echo.*** DefaultProperties ***
90     copy %SOURCE_DIR%\DefaultProperties . %COPY_PARAM%
91     copy %SOURCE_DIR%\XuluProperties . %COPY_PARAM%
92     echo.*** Eclipse configuration ***
93     copy %SOURCE_DIR%\.classpath . %COPY_PARAM%
94     copy %SOURCE_DIR%\.project . %COPY_PARAM%
95     echo.*** startXulu.bat ***
96     copy %SOURCE_DIR%\startXulu.bat . %COPY_PARAM%
97     copy %SOURCE_DIR%\startXulu.sh . %COPY_PARAM%
98     echo.*** sample XULU registry files ***
99     copy %SOURCE_DIR%\registry.xif . %COPY_PARAM%
100     copy %SOURCE_DIR%\registry_arrayGrid.xif . %COPY_PARAM%
101     copy %SOURCE_DIR%\registry_ProxyGrid.xif . %COPY_PARAM%
102     echo.*** Plugin folder ***
103     if not exist plugin (mkdir plugin) else echo. 'plugin' folder already exists!
104     echo.*** Template files for GeoModelCodeGenerator plugin ***
105     set DDIR=plugin\GeoModelCodeGenerator
106     set SDIR=%SOURCE_DIR%\%DDIR%
107     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
108     copy %SDIR%\ModelContentManager.tpl %DDIR% %COPY_PARAM%
109     copy %SDIR%\StepModel.tpl %DDIR% %COPY_PARAM%
110     copy %SDIR%\XuluModel.tpl %DDIR% %COPY_PARAM%
111     echo.*** Template files for GTVisualisationColorMapPlugin ***
112     set DDIR=plugin\GTVisualisationColorMapPlugin
113     set SDIR=%SOURCE_DIR%\%DDIR%
114     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
115     copy %SDIR%\gtcolormaps.xif %DDIR% %COPY_PARAM%
116     echo.*** Template files for LoggerPlugin ***
117     set DDIR=plugin\LoggerPlugin
118     set SDIR=%SOURCE_DIR%\%DDIR%
119     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
120     copy %SDIR%\log4j.cfg %DDIR% %COPY_PARAM%
121     echo.*** Template files for LoggerPlugin ***
122     set DDIR=plugin\RasterCalculator
123     set SDIR=%SOURCE_DIR%\%DDIR%
124     if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
125     copy %SDIR%\default_filter.inp %DDIR% %COPY_PARAM%
126    
127    
128     goto finish
129    
130    
131     rem ************************** Finish routine **************************
132     :finish
133     echo.Finished.
134     echo.
135    
136     endlocal

root@scm.wald.intevation.org
ViewVC Help
Powered by ViewVC 1.1.26