/[TIS-4000 Rel T60]/scripts/Make_t60distribution
ViewVC logotype

Contents of /scripts/Make_t60distribution

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.26 - (show annotations)
Mon Apr 1 19:19:11 2002 UTC (21 years, 5 months ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, HEAD
Changes since 1.25: +81 -84 lines
Add vxWorks directories to the distribution. - ncd

1 #!/bin/sh
2 #
3 # This script will create or update a t60 distribution
4 # directory from a project jaz disk.
5 #
6 alphi=x
7 apple=x
8 applix=x
9 begin=x
10 driver=x
11 end=""
12 iocname=x
13 install=x
14 installdir=x
15 instdrv=x
16 odss=x
17 optag=x
18 oracle=x
19 pager=x
20 slm=x
21 snl=x
22 status=x
23 strp=x
24 tag=x
25 tagname=x
26 targetIOC=x
27 udb=x
28 upgrade=x
29 vx162042rci=x
30 vx162042rtu=x
31 vx162042sys2000=x
32 vx162532rtu=x
33 vx162532rci=x
34 vx167ioc=x
35 wca=x
36 #
37 echo "Is this a new distribution or an update? "
38 until [ "$status" = new ] || [ "$status" = update ]
39 do
40 echo "Enter new or update "
41 read status
42 done
43 echo
44 echo "Please enter the name of the distribution: "
45 read dist
46 echo
47 echo "Please enter release disk mountpoint (without leading '/'): "
48 read relDisk
49 echo
50 installdir=/$relDisk/$dist"_distribution"
51
52 until [ "$begin" = n ] || [ "$begin" = y ]
53 do
54 echo "This script will prepare the distribution structure for the $dist release"
55 echo "in the $installdir directory. "
56 echo "Continue? y/n: "
57 read begin
58 done
59
60 if [ $begin = y -o $begin = Y ]
61 then
62 if [ $status = new ]
63 then
64 echo
65 echo "Ready to install......."
66 echo "Please answer the following questions:"
67
68 until [ "$targetIOC" = X486 ] || [ "$targetIOC" = M30 ]
69 do
70 echo
71 echo "Which IOC type is this (X486 or M30)? "
72 read targetIOC
73 echo targetIOC $targetIOC >> updateinfo
74 done
75
76 if [ "$targetIOC" = M30 ]
77 then
78 echo
79 echo "Are you using an MVME162-042 configured as a Remote Communication Interface (RCI)? y/n "
80 read vx162042rci
81 echo vx162042rci $vx162042rci >> updateinfo
82 echo
83 echo "Are you using an MVME162-042 configured as an IOC (RTU)? y/n "
84 read vx162042rtu
85 echo vx162042rtu $vx162042rtu >> updateinfo
86 echo
87 echo "Are you using an MVME162-042 configured as an IOC (RTU) Sys2000? y/n "
88 read vx162042sys2000
89 echo vx162042sys2000 $vx162042sys2000 >> updateinfo
90 echo
91 echo "Are you using an MVME162-532 configured as an IOC (RTU)? y/n "
92 read vx162532rtu
93 echo vx162532rtu $vx162532rtu >> updateinfo
94 echo
95 echo "Are you using an MVME162-532 configured as a Remote Communication Interface (RCI)? y/n "
96 read vx162532rci
97 echo vx162532rci $vx162532rci >> updateinfo
98 echo
99 echo "Are you using an MVME167 IOC? y/n "
100 read vx167ioc
101 echo vx167ioc $vx167ioc >> updateinfo
102 fi
103
104 until [ "$alphi" = n ] || [ "$alphi" = y ]
105 do
106 echo
107 echo "Is this system using an Alphi ICC830 serial board? y/n: "
108 read alphi
109 echo alphi $alphi >> updateinfo
110 done
111
112 until [ "$secure" = n ] || [ "$secure" = y ]
113 do
114 echo
115 echo "Is this a secure (SSL) installation? y/n: "
116 read secure
117 echo secure $secure >> updateinfo
118 done
119
120 until [ "$applix" = n ] || [ "$applix" = y ]
121 do
122 echo
123 echo "Will Applix be installed on this system? y/n: "
124 read applix
125 echo applix $applix >> updateinfo
126 done
127
128 until [ "$pager" = n ] || [ "$pager" = y ]
129 do
130 echo
131 echo "Will this system use the Pager option? y/n: "
132 read pager
133 echo pager $pager >> updateinfo
134 done
135
136 until [ "$udb" = n ] || [ "$udb" = y ]
137 do
138 echo
139 echo "Will this system use UDB? y/n: "
140 read udb
141 echo udb $udb >> updateinfo
142 done
143
144 until [ "$odss" = n ] || [ "$odss" = y ]
145 do
146 echo
147 echo "Do you wish to install the ODSS option? y/n: "
148 read odss
149 echo odss $odss >> updateinfo
150 done
151
152 until [ "$slm" = n ] || [ "$slm" = y ]
153 do
154 echo
155 echo "Do you wish to install Security List Maintenance? y/n: "
156 read slm
157 echo slm $slm >> updateinfo
158 done
159
160 until [ "$oracle" = n ] || [ "$oracle" = y ]
161 do
162 echo
163 echo "Will Oracle be installed on this system? y/n: "
164 read oracle
165 echo oracle $oracle >> updateinfo
166 done
167
168 until [ "$optag" = n ] || [ "$optag" = y ]
169 do
170 echo
171 echo "Do you wish to install Circuit Breaker Operator Tagging? y/n: "
172 read optag
173 echo optag $optag >> updateinfo
174 done
175
176 until [ "$wca" = n ] || [ "$wca" = y ]
177 do
178 echo
179 echo "Do you wish to install the Web based CA support? y/n: "
180 read wca
181 echo wca $wca >> updateinfo
182 done
183
184
185 until [ "$upgrade" = n ] || [ "$upgrade" = y ]
186 do
187 echo
188 echo "Will you be performing upgrades to graphics and database files? y/n: "
189 read upgrade
190 echo upgrade $upgrade >> updateinfo
191 done
192
193 until [ "$strp" = n ] || [ "$strp" = y ]
194 do
195 echo
196 echo "Do you wish to strip the files in the torTasks2 directory? y/n: "
197 read strp
198 echo strp $strp >> updateinfo
199 done
200
201 # Create basic structure
202 mkdir $installdir
203 mkdir $installdir/tis4000
204 mkdir $installdir/tis4000/apple
205 mkdir $installdir/tis4000/graphics
206 mkdir $installdir/tis4000/graphics/adls
207 mkdir $installdir/tis4000/operators
208 mkdir $installdir/tis4000/operators/logins
209 mkdir $installdir/tis4000/udds
210 mkdir $installdir/tis4000/tasks
211 mkdir $installdir/tis4000/tasks/headers
212 mkdir $installdir/tis4000/temp
213 mkdir $installdir/tis4000/torTasks2
214 mkdir $installdir/tis4000/torTasks2/$targetIOC
215 mkdir $installdir/tis4000/documents
216 mkdir $installdir/tis4000/documents/help
217
218 echo
219 echo "Do you want to create IOC directories on the distribution disk? y/n "
220 read iocdir
221
222 if [ $iocdir = y -o $iocdir = Y ]
223 then
224 echo "Enter IOC names."
225 echo "Press <CR> when finished."
226 echo
227 until [ "$iocname" = "$end" ]
228 do
229 echo "Enter IOC name: \c"
230 read iocname
231 if [ "$iocname" != "$end" ]
232 then
233 echo
234 echo "Creating directory $iocname"
235 echo
236 mkdir $installdir/tis4000/apple/$iocname
237 echo iocname $iocname >> updateinfo
238 fi
239 done
240 else
241 echo
242 echo "Skipping Directory creation for IOCs"
243 echo
244 fi
245 fi
246
247 if [ $status = update ]
248 then
249 targetIOC="`grep -h "targetIOC" updateinfo | awk '{print $2 }'`"
250 vx162042rci="`grep -h "vx162042rci" updateinfo | awk '{print $2 }'`"
251 vx162042rtu="`grep -h "vx162042rtu" updateinfo | awk '{print $2 }'`"
252 vx162042sys2000="`grep -h "vx162042sys2000" updateinfo | awk '{print $2 }'`"
253 vx162532rtu="`grep -h "vx162532rtu" updateinfo | awk '{print $2 }'`"
254 vx162532rci="`grep -h "vx162532rci" updateinfo | awk '{print $2 }'`"
255 vx167ioc="`grep -h "vx167ioc" updateinfo | awk '{print $2 }'`"
256 alphi="`grep -h "alphi" updateinfo | awk '{print $2 }'`"
257 secure="`grep -h "secure" updateinfo | awk '{print $2 }'`"
258 applix="`grep -h "applix" updateinfo | awk '{print $2 }'`"
259 alarmtalk="`grep -h "alarmtalk" updateinfo | awk '{print $2 }'`"
260 pager="`grep -h "pager" updateinfo | awk '{print $2 }'`"
261 udb="`grep -h "udb" updateinfo | awk '{print $2 }'`"
262 odss="`grep -h "odss" updateinfo | awk '{print $2 }'`"
263 slm="`grep -h "slm" updateinfo | awk '{print $2 }'`"
264 oracle="`grep -h "oracle" updateinfo | awk '{print $2 }'`"
265 optag="`grep -h "optag" updateinfo | awk '{print $2 }'`"
266 wca="`grep -h "wca" updateinfo | awk '{print $2 }'`"
267 upgrade="`grep -h "upgrade" updateinfo | awk '{print $2 }'`"
268 strp="`grep -h "strp" updateinfo | awk '{print $2 }'`"
269 fi
270
271 echo
272 echo "Installing TIS4000 core executables"
273 for filename in `grep -h "HostBaseComponent" tistasksfiles | awk '{ print $1 }'`
274 do
275 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
276 done
277
278 echo
279 echo "Installing TIS4000 header files"
280 for filename in `grep -h "HostBaseHeader" tistasksfiles | awk '{ print $1 }'`
281 do
282 cp -pr /$relDisk/t60/share/epicsH/$filename $installdir/tis4000/tasks/headers
283 done
284
285 echo
286 echo "Installing Java Utilities"
287 for filename in `grep -h "JavaClass" tistasksfiles | awk '{ print $1 }'`
288 do
289 cp -pr /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks
290 done
291
292 # Copy standard scripts
293 cp -pr /$relDisk/t60/scripts/installTis4000 $installdir
294 cp -pr /$relDisk/t60/scripts/create_db $installdir/tis4000/tasks
295 cp -pr /$relDisk/t60/scripts/tistasks $installdir/tis4000/tasks
296 cp -pr /$relDisk/t60/scripts/rc.tisstart $installdir/tis4000/tasks
297 cp -pr /$relDisk/t60/scripts/rc.tisstop $installdir/tis4000/tasks
298
299 if [ $status = new ]
300 then
301 mkdir $installdir/galaxy
302 mkdir $installdir/galaxy/lib
303 mkdir $installdir/tis4000/snl
304 mkdir $installdir/tis4000/snl/programs
305 mkdir $installdir/tis4000/tasks/compilers
306 mkdir $installdir/tis4000/tasks/compilers/$targetIOC
307 fi
308
309 # Copy galaxy support
310 rcp -pr soldev1:/tools/galaxy/galaxycxx/lib/vgalaxy2.vr $installdir/galaxy/lib
311 rcp -pr soldev1:/tools/galaxy/galaxycxx/lib/libvgalaxy++-debug.so.3 $installdir/galaxy/lib
312
313 # Copy snl support
314 cp -pr /$relDisk/t60/scripts/buildsnl $installdir/tis4000/snl
315
316 # Collect tis4000 headers for cross compiler!!!
317 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ar $installdir/tis4000/tasks/compilers/$targetIOC
318 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/as $installdir/tis4000/tasks/compilers/$targetIOC
319 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cc1 $installdir/tis4000/tasks/compilers/$targetIOC
320 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cc1plus $installdir/tis4000/tasks/compilers/$targetIOC
321 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/cpp $installdir/tis4000/tasks/compilers/$targetIOC
322 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/gcc $installdir/tis4000/tasks/compilers/$targetIOC
323 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ld $installdir/tis4000/tasks/compilers/$targetIOC
324 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/nm $installdir/tis4000/tasks/compilers/$targetIOC
325 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/ranlib $installdir/tis4000/tasks/compilers/$targetIOC
326 rcp -pr soldev1:/tools/gnuXCompilers/$targetIOC/strip $installdir/tis4000/tasks/compilers/$targetIOC
327
328 # Copy codebase runtime library for java support
329 rcp -pr soldev1:/disk1/java/cbjni/source/libcb.so $installdir/tis4000/tasks
330
331 if [ $alphi = y -o $alphi = Y ]
332 then
333 echo
334 echo "Installing Alphi ICC830 serial board options"
335 for filename in `grep -h "BoardAlphiICC830" tistasksfiles | awk '{ print $1 }'`
336 do
337 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
338 done
339 else
340 echo
341 echo "Skipping installation of Alphi ICC830 serial board files."
342 fi
343
344 if [ $secure = y -o $secure = Y ]
345 then
346 echo
347 echo "Installing Secure Base components"
348 for filename in `grep -h "HostSecBaseComponent" tistasksfiles | awk '{ print $1 }'`
349 do
350 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
351 done
352 cp -pr /$relDisk/t60/scripts/secScripts/starttis4000 $installdir/tis4000/tasks
353 cp -pr /$relDisk/t60/scripts/secScripts/stop_TIS $installdir/tis4000/tasks
354 cp -pr /$relDisk/t60/scripts/secScripts/start_TIS $installdir/tis4000/tasks
355 cp -pr /$relDisk/t60/share/src/voipMon/getvoip $installdir/tis4000/tasks
356 if [ $status = new ]
357 then
358 mkdir $installdir/usr
359 mkdir $installdir/usr/local
360 mkdir $installdir/usr/local/ssl
361 mkdir $installdir/usr/local/ssl/certs
362 fi
363 else
364 echo
365 echo "Installing Standard Base components"
366 for filename in `grep -h "HostStdBaseComponent" tistasksfiles | awk '{ print $1 }'`
367 do
368 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
369 done
370 cp -pr /$relDisk/t60/scripts/stdScripts/starttis4000 $installdir/tis4000/tasks
371 cp -pr /$relDisk/t60/scripts/stdScripts/stop_TIS $installdir/tis4000/tasks
372 cp -pr /$relDisk/t60/scripts/stdScripts/start_TIS $installdir/tis4000/tasks
373 cp -pr /$relDisk/t60/scripts/stdScripts/startJava $installdir/tis4000/tasks
374 cp -pr /$relDisk/t60/scripts/stdScripts/stopJava $installdir/tis4000/tasks
375 fi
376
377 if [ $upgrade = y -o $upgrade = Y ]
378 then
379 echo
380 echo "Installing TIS4000 Upgrade executables"
381 for filename in `grep -h "HostUpgrade" tistasksfiles | awk '{ print $1 }'`
382 do
383 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
384 done
385 else
386 echo
387 echo "Skipping installation of upgrade executables"
388 fi
389
390 if [ $applix = y -o $applix = Y ]
391 then
392 echo
393 echo "Installing Applix files for TIS4000"
394 if [ $status = new ]
395 then
396 mkdir $installdir/tis4000/axhome
397 mkdir $installdir/tis4000/axhome/macros
398 fi
399 for filename in `grep -h "HostApplix" tistasksfiles | awk '{ print $1 }'`
400 do
401 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
402 done
403 else
404 echo
405 echo "Skipping installation of Applix files."
406 fi
407
408 if [ $pager = y -o $pager = Y ]
409 then
410 echo
411 echo "Installing Pager option"
412 for filename in `grep -h "HostPager" tistasksfiles | awk '{ print $1 }'`
413 do
414 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
415 done
416 else
417 echo
418 echo "Skipping installation of Pager files."
419 fi
420
421 if [ $udb = y -o $udb = Y ]
422 then
423 echo
424 echo "Installing UDB"
425 if [ $status = new ]
426 then
427 mkdir $installdir/tis4000/udb
428 mkdir $installdir/tis4000/udb/programs
429 fi
430 cp -pr /$relDisk/t60/scripts/buildudb $installdir/tis4000/udb
431 cp -pr /$relDisk/t60/share/src/udbcode/generic/udbStubs.c $installdir/tis4000/udb/programs
432 for filename in `grep -h "IOCUDB" tistasksfiles | awk '{ print $1 }'`
433 do
434 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
435 done
436 else
437 echo
438 echo "Skipping installation of UDB files."
439 fi
440
441 if [ $odss = y -o $odss = Y ]
442 then
443 echo
444 echo "Installing ODSS options"
445 for filename in `grep -h "HostOdss" tistasksfiles | awk '{ print $1 }'`
446 do
447 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
448 done
449 else
450 echo
451 echo "Skipping installation of ODSS files."
452 fi
453
454 if [ $slm = y -o $slm = Y ]
455 then
456 echo
457 echo "Installing Security List Maintenance"
458 for filename in `grep -h "HostSlm" tistasksfiles | awk '{ print $1 }'`
459 do
460 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
461 done
462 else
463 echo
464 echo "Skipping installation of SLM files."
465 fi
466
467 if [ $oracle = y -o $oracle = Y ]
468 then
469 echo
470 echo "Installing Oracle trending files"
471 for filename in `grep -h "HostOracle" tistasksfiles | awk '{ print $1 }'`
472 do
473 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
474 done
475 cp -p /$relDisk/t60/scripts/dotrenddata $installdir/tis4000/tasks
476 cp -p /$relDisk/t60/java/classes/oracleSnapEditClient.jar $installdir/tis4000/tasks
477 cp -p /$relDisk/t60/java/projects/hathaway/trend/snapedit.readme $installdir/tis4000/tasks
478 else
479 echo
480 echo "Installing xBase trending files."
481 for filename in `grep -h "HostNotOracle" tistasksfiles | awk '{ print $1 }'`
482 do
483 cp -pr /$relDisk/t60/Unix/sun2.4/bin/$filename $installdir/tis4000/tasks
484 done
485 fi
486
487 if [ $optag = y -o $optag = Y ]
488 then
489 echo
490 echo "Installing Circuit Breaker Operator Tagging Files"
491 for filename in `grep -h "JavaOptag" tistasksfiles | awk '{ print $1 }'`
492 do
493 cp -pr /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks
494 done
495 else
496 echo
497 echo "Skipping installation of Circuit Breaker Operator Tagging files."
498 fi
499
500 if [ $wca = y -o $wca = Y ]
501 then
502 echo
503 echo "Installing Web-based CA"
504 for filename in `grep -h "JavaWca" tistasksfiles | awk '{ print $1 }'`
505 do
506 cp -pr /$relDisk/t60/java/classes/$filename $installdir/tis4000/tasks
507 done
508 else
509 echo
510 echo "Skipping installation of Web-based CA files."
511 fi
512
513 #
514 #################################################################################
515 #
516
517 echo
518 echo "Beginning installation of vxWorks components"
519 echo
520 echo
521 echo "Installing IOC Core Executable files"
522 for filename in `grep -h "IOCBaseComponent" tistasksfiles | awk '{ print $1 }'`
523 do
524 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
525 done
526
527 if [ $status = new ] && [ $targetIOC = X486 ]
528 then
529 mkdir $installdir/tis4000/apple/RelDisks
530 mkdir $installdir/tis4000/apple/RelDisks/Disk1
531 mkdir $installdir/tis4000/apple/RelDisks/Disk2
532 mkdir $installdir/tis4000/apple/RelDisks/dpgDisk1
533 mkdir $installdir/tis4000/apple/RelDisks/dpgDisk2
534 mkdir $installdir/tis4000/apple/RelDisks/dpgDisk3
535 fi
536
537 if [ $secure = y -o $secure = Y ]
538 then
539 echo
540 echo "Installing IOC Secure components"
541 for filename in `grep -h "IOCSecBaseComponent" tistasksfiles | awk '{ print $1 }'`
542 do
543 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
544 done
545
546 # Copy release disk components to apple/RelDisks
547 if [ $targetIOC = X486 ]
548 then
549 # Copy ssl.o, lynks library to torTasks2 directory
550 rcp -p soldev1:/tools/SSLeay/TornadoX86/ssl.o $installdir/tis4000/torTasks2/$targetIOC
551 rcp -p soldev1:/tools/SSLeay/TornadoX86/lynksees.o $installdir/tis4000/torTasks2/$targetIOC
552 fi
553 else
554 for filename in `grep -h "IOCStdBaseComponent" tistasksfiles | awk '{ print $1 }'`
555 do
556 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
557 done
558 fi
559
560 if [ $targetIOC = X486 ]
561 then
562 for filename in `grep -h "IOCBootComponent" tistasksfiles | awk '{ print $1 }'`
563 do
564 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/apple/RelDisks/dpgDisk1
565 done
566 echo
567 echo "Installing vxWorks for X486"
568 # Tornado2 X486
569 rcp -p soldev1:/tools/Tornado2_X86/vxWorks $installdir/tis4000/torTasks2/$targetIOC
570 rcp -p soldev1:/tools/Tornado2_X86/vxWorks.sym $installdir/tis4000/torTasks2/$targetIOC
571 rcp -p soldev1:/tools/Tornado2_X86/bootrom.sys $installdir/tis4000/apple/RelDisks/dpgDisk1
572 rcp -p soldev1:/tools/Tornado2_X86/vxsys.com $installdir/tis4000/apple/RelDisks/dpgDisk1
573 rcp -p soldev1:/tools/Tornado2_X86/vxWorks $installdir/tis4000/apple/RelDisks/dpgDisk2
574 rcp -p soldev1:/tools/Tornado2_X86/vxWorks.sym $installdir/tis4000/apple/RelDisks/dpgDisk3
575 rcp -pr soldev1:/tools/Tornado2_X86/headers $installdir/tis4000/tasks
576 fi
577
578 if [ $targetIOC = M30 ]
579 then
580 # Copy vxWorks Tools
581 rcp -pr soldev1:/tools/Tornado2_68k/headers $installdir/tis4000/tasks
582
583 if [ $vx162042rci = y -o $vx162042rci = Y ]
584 then
585 echo
586 echo "Installing MVME162-042 RCI"
587 rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rci $installdir/tis4000/tasks
588 else
589 echo
590 echo "Skipping installation MVME162-042 RCI."
591 fi
592
593 if [ $vx162042rtu = y -o $vx162042rtu = Y ]
594 then
595 echo
596 echo "Installing MVME162-042 RTU"
597 rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rtu $installdir/tis4000/tasks
598 else
599 echo
600 echo "Skipping installation MVME162-042 RTU."
601 fi
602
603 if [ $vx162042sys2000 = y -o $vx162042sys2000 = Y ]
604 then
605 echo
606 echo "Installing MVME162-042 RTU Sys2000"
607 rcp -pr soldev1:/tools/Tornado2_68k/vx162-042rtu-sys2000 $installdir/tis4000/tasks
608 else
609 echo
610 echo "Skipping installation MVME162-042 RTU Sys2000."
611 fi
612 if [ $vx162532rtu = y -o $vx162532rtu = Y ]
613 then
614 echo
615 echo "Installing MVME162-532 RTU"
616 rcp -pr soldev1:/tools/Tornado2_68k/vx162-532rtu $installdir/tis4000/tasks
617 else
618 echo
619 echo "Skipping installation MVME162-532 RTU."
620 fi
621
622 if [ $vx162532rci = y -o $vx162532rci = Y ]
623 then
624 echo
625 echo "Installing MVME162-532 RCI"
626 rcp -pr soldev1:/tools/Tornado2_68k/vx162-532rci $installdir/tis4000/tasks
627 else
628 echo
629 echo "Skipping installation MVME162-532 RCI."
630 fi
631
632 if [ $vx167ioc = y -o $vx167ioc = Y ]
633 then
634 echo
635 echo "Installing MVME167 IOC"
636 rcp -pr soldev1:/tools/Tornado2_68k/vx167-ioc $installdir/tis4000/tasks
637 else
638 echo
639 echo "Skipping installation MVME167 IOC."
640 fi
641 fi
642
643 echo
644 echo "Beginning installation of drivers"
645 if [ $status = new ]
646 then
647 until [ "$instdrv" = n ] || [ "$instdrv" = y ]
648 do
649 echo
650 echo "Do you want to install drivers now? y/n "
651 read instdrv
652 echo instdrv $instdrv >> updateinfo
653 done
654 else
655 if [ $status = update ]
656 then
657 until [ "$instdrv" = n ] || [ "$instdrv" = y ]
658 do
659 echo
660 echo "Do you want to add drivers to the present distribution? y/n "
661 read instdrv
662 done
663 fi
664 fi
665
666 if [ $instdrv = y ]
667 then
668 echo
669 echo "Your choices are:"
670 cat driverfile
671 echo
672 echo "Enter driver name as shown above."
673 echo "Make sure to captilize the first letter."
674 echo "Enter <CR> when finished."
675 echo
676 until [ "$driver" = "$end" ]
677 do
678 echo "Driver name: "
679 read driver
680 if [ "$driver" != "$end" ]
681 then
682 echo "Installing $driver ...."
683 for filename in `grep -h "IOCDriver$driver" tistasksfiles | awk '{ print $1 }'`
684 do
685 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
686 done
687 echo driver $driver >> updateinfo
688 fi
689 done
690 else
691 echo
692 echo "Skipping installation of new drivers"
693 fi
694
695 if [ $status = update ]
696 then
697 instdrv="`grep -h "instdrv" updateinfo | awk '{print $2 }'`"
698 if [ $instdrv = y ]
699 then
700 for driver in `cat driverfile`
701 do
702 for drivername in `grep -h "$driver" updateinfo | awk '{ print $2 }'`
703 do
704 echo
705 echo "Updating $drivername ...."
706 echo
707 for filename in `grep -h "IOCDriver$driver" tistasksfiles | awk '{ print $1 }'`
708 do
709 cp -pr /$relDisk/t60/Tornado2/bin/$targetIOC/$filename $installdir/tis4000/torTasks2/$targetIOC
710 done
711 done
712 done
713 fi
714 fi
715
716 if [ "$strp" = y ] || [ "$strp" = Y ]
717 then
718 echo
719 echo "Stripping files in torTasks directory"
720 if [ $status = update ]
721 then
722 'rm' -r $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
723 fi
724 mkdir $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
725 cp -p $installdir/tis4000/torTasks2/$targetIOC/* $installdir/tis4000/torTasks2/$targetIOC/strippedFiles
726 /tools/gnuXCompilers/$targetIOC/strip --strip-debug $installdir/tis4000/torTasks2/$targetIOC/strippedFiles/*
727 echo
728 else
729 echo
730 echo "Skipping stripping of torTasks directory."
731 fi
732
733 #
734 #########################################################################
735 #
736
737 echo
738 echo "Installing Standard Graphics"
739 cp -p /$relDisk/t60/graphic_adls/*.adl $installdir/tis4000/graphics/adls
740
741 echo
742 echo "Installing Help Documents"
743 cp -p /$relDisk/t60/documents/helpDefs.def $installdir/tis4000/documents
744 cp -p /$relDisk/t60/documents/help/*.pdf $installdir/tis4000/documents/help
745
746 echo
747 echo "Establishing TIS4000 ownership on tasks directory"
748 chown -R tis4000 $installdir/tis4000
749 echo
750 echo "******* Installation Complete *******"
751 echo
752
753 echo "Do you want to tag the release? "
754 read tag
755 if [ $tag = y ]
756 then
757 echo
758 echo "What is the tag name? "
759 read tagname
760 echo
761 cd /$relDisk/t60
762 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname share
763 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname Tornado2
764 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname java
765 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname graphic_adls
766 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname documents
767 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname scripts
768 cd Unix
769 cvs -d /$relDisk/src/$relDisk"_master" tag $tagname sun2.4
770 cd /$relDisk
771 echo
772 fi
773 echo
774 echo "*******Exitting Script*******"
775 else
776 echo
777 echo "*******Exitting Script*******"
778 fi
779
780
781
782

  ViewVC Help
Powered by ViewVC 1.1.30