3
echo Installing to %COINDIR%
5
if not "%COINDIR%"=="" goto coindirset
6
echo The COINDIR environment variable must be set to point to a directory
7
echo to be able to perform the installation procedure.
10
if exist %COINDIR%\*.* goto coindirexists
11
echo The COINDIR environment variable must point to an existing directory
12
echo to be able to perform the installation procedure.
18
REM **********************************************************************
19
REM * Create all the directories for the installed files
21
if exist bin\*.* goto binexists
22
echo mkdir %COINDIR%\bin
25
if exist data\*.* goto dataexists
26
echo mkdir %COINDIR%\data
30
if exist draggerDefaults\*.* goto draggerdefaultsexists
31
echo mkdir %COINDIR%\data\draggerDefaults
33
:draggerdefaultsexists
35
if exist lib\*.* goto libexists
36
echo mkdir %COINDIR%\lib
39
if exist include\*.* goto includeexists
40
echo mkdir %COINDIR%\include
44
if exist Inventor\*.* goto inventorexists
45
echo mkdir %COINDIR%\include\Inventor
49
if exist C\*.* goto cexists
50
echo mkdir %COINDIR%\include\Inventor\C
54
if exist base\*.* goto cbaseexists
55
echo mkdir %COINDIR%\include\Inventor\C\base
58
if exist errors\*.* goto cerrorsexists
59
echo mkdir %COINDIR%\include\Inventor\C\errors
62
if exist glue\*.* goto cglueexists
63
echo mkdir %COINDIR%\include\Inventor\C\glue
66
if exist threads\*.* goto cthreadsexists
67
echo mkdir %COINDIR%\include\Inventor\C\threads
71
if exist MPEG\*.* goto mpegexists
72
echo mkdir %COINDIR%\include\Inventor\MPEG
75
if exist VRMLnodes\*.* goto vrmlnodesexists
76
echo mkdir %COINDIR%\include\Inventor\VRMLnodes
79
if exist actions\*.* goto actionsexists
80
echo mkdir %COINDIR%\include\Inventor\actions
83
if exist annex\*.* goto annexexists
84
echo mkdir %COINDIR%\include\Inventor\annex
88
if exist HardCopy\*.* goto hardcopyexists
89
echo mkdir %COINDIR%\include\Inventor\annex\HardCopy
93
if exist bundles\*.* goto bundlesexists
94
echo mkdir %COINDIR%\include\Inventor\bundles
97
if exist caches\*.* goto cachesexists
98
echo mkdir %COINDIR%\include\Inventor\caches
101
if exist collision\*.* goto collisionexists
102
echo mkdir %COINDIR%\include\Inventor\collision
105
if exist details\*.* goto detailsexists
106
echo mkdir %COINDIR%\include\Inventor\details
109
if exist draggers\*.* goto draggersexists
110
echo mkdir %COINDIR%\include\Inventor\draggers
113
if exist elements\*.* goto elementsexists
114
echo mkdir %COINDIR%\include\Inventor\elements
117
if exist engines\*.* goto enginesexists
118
echo mkdir %COINDIR%\include\Inventor\engines
121
if exist errors\*.* goto errorsexists
122
echo mkdir %COINDIR%\include\Inventor\errors
125
if exist events\*.* goto eventsexists
126
echo mkdir %COINDIR%\include\Inventor\events
129
if exist fields\*.* goto fieldsexists
130
echo mkdir %COINDIR%\include\Inventor\fields
133
if exist lists\*.* goto listsexists
134
echo mkdir %COINDIR%\include\Inventor\lists
137
if exist lock\*.* goto lockexists
138
echo mkdir %COINDIR%\include\Inventor\lock
141
if exist manips\*.* goto manipsexists
142
echo mkdir %COINDIR%\include\Inventor\manips
145
if exist misc\*.* goto miscexists
146
echo mkdir %COINDIR%\include\Inventor\misc
149
if exist nodekits\*.* goto nodekitsexists
150
echo mkdir %COINDIR%\include\Inventor\nodekits
153
if exist nodes\*.* goto nodesexists
154
echo mkdir %COINDIR%\include\Inventor\nodes
157
if exist projectors\*.* goto projectorsexists
158
echo mkdir %COINDIR%\include\Inventor\projectors
161
if exist sensors\*.* goto sensorsexists
162
echo mkdir %COINDIR%\include\Inventor\sensors
165
if exist system\*.* goto systemexists
166
echo mkdir %COINDIR%\include\Inventor\system
169
if exist threads\*.* goto threadsexists
170
echo mkdir %COINDIR%\include\Inventor\threads
176
REM **********************************************************************
179
REM this part needs to be autogenerated
180
echo Installing header files...
181
call install-headers.bat
183
echo Installing data files...
184
xcopy ..\..\data\draggerDefaults\*.iv %COINDIR%\data\draggerDefaults\ /R /Y
186
echo Installing binaries...
187
xcopy coin2sd.lib %COINDIR%\lib\ /R /Y