visit-install-open 20.6 KB
Newer Older
hrchilds's avatar
hrchilds committed
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
#-----------------------------------------------------------------------
#
# VISIT-INSTALL-OPEN - Install the visit distributions on the open
#                      network.
#
# Author: Eric Brugger
# Date:   October 27, 2000
#
# Usage:
hrchilds's avatar
hrchilds committed
11
#    visit-install-open [-beta | -private | -public] -v <version>
hrchilds's avatar
hrchilds committed
12
#
hrchilds's avatar
hrchilds committed
13
# Modifications:
hrchilds's avatar
hrchilds committed
14 15 16
#   Brad Whitlock, Tue Mar 7 14:08:59 PST 2006
#   Added -b bank to the visit-install invokations.
#
hrchilds's avatar
hrchilds committed
17 18 19
#   Hank Childs, Wed Oct 17 16:25:14 PDT 2007
#   Add a subject line to the status e-mail.
#
20 21 22
#   Hank Childs, Sat May  2 13:26:51 CDT 2009
#   Change config file to "llnl_open".
#
23 24 25
#   Eric Brugger, Fri Nov  5 15:22:54 PDT 2010
#   I replaced yana with aztec.
#
26 27 28
#   Eric Brugger, Mon May 16 14:53:23 PDT 2011
#   I added glory and redsky.
#
29 30 31
#   Eric Brugger, Fri Aug  5 09:53:51 PDT 2011
#   I added kickit.
#
32 33 34
#   Eric Brugger, Tue Sep  6 14:13:59 PDT 2011
#   I added rzzeus.
#
35 36 37
#   Brad Whitlock, Wed Oct 12 10:01:07 PDT 2011
#   Install as llnl_open_cz or llnl_open_rz depending on machine.
#
38 39 40
#   Eric Brugger, Mon Jan 23 13:52:00 PST 2012
#   I added sidious.
#
41 42 43
#   Eric Brugger, Thu Mar  1 12:56:56 PST 2012
#   I added ubuntu1104_64.
#
44 45 46 47
#   Eric Brugger, Thu May  3 08:30:22 PDT 2012
#   I removed ellipse and xchem.  I modified hoth, kickit, sidious and
#   aztec for various reasons.  I updated the e-mail addresses.
#
48 49 50
#   Eric Brugger, Tue May 15 11:08:05 PDT 2012
#   I changed the name of the ubuntu 11 executable.
#
51 52 53
#   Eric Brugger, Wed Jun 13 08:40:31 PDT 2012
#   I added atlas and rzthriller.
#
54 55 56
#   Eric Brugger, Mon Jul 30 10:21:57 PDT 2012
#   I replaced atlas with prism.
#
57 58 59
#   Eric Brugger, Wed Sep 26 17:11:04 PDT 2012
#   I deleted prism.
#
60 61 62 63 64
#   Eric Brugger, Wed Nov 14 10:45:59 PST 2012
#   I deleted hoth. I made the sidious install off by default. I modified
#   the kickit installation since it is now a linux-x86_64 system instead
#   of a linux-intel system.
#
65 66 67
#   Eric Brugger, Tue Oct 22 11:11:01 PDT 2013
#   I removed rzthriller.
#
hrchilds's avatar
hrchilds committed
68 69 70 71 72 73 74 75 76 77 78
#-----------------------------------------------------------------------

test=no

user=`whoami`

#
# Set the user e-mail address.
#
emailName=brugger1@llnl.gov
case $user in
79 80 81
   biagas2)
      emailName=biagas2@llnl.gov
      ;;
hrchilds's avatar
hrchilds committed
82
   kbonnell)
83
      emailName=biagas2@llnl.gov
hrchilds's avatar
hrchilds committed
84
      ;;
85
   brugger1)
hrchilds's avatar
hrchilds committed
86 87
      emailName=brugger1@llnl.gov
      ;;
88
   brugger)
89 90
      emailName=brugger1@llnl.gov
      ;;
91 92 93 94 95
   harrison37)
      emailName=cyrush@llnl.gov
      ;;
   cyrush)
      emailName=cyrush@llnl.gov
hrchilds's avatar
hrchilds committed
96
      ;;
hrchilds's avatar
hrchilds committed
97 98
   mcmiller)
      emailName=miller86@llnl.gov
hrchilds's avatar
hrchilds committed
99
      ;;
hrchilds's avatar
hrchilds committed
100 101
   miller)
      emailName=miller86@llnl.gov
hrchilds's avatar
hrchilds committed
102 103 104 105 106 107
      ;;
esac

#
# Parse the execute line, providing default values for error checking.
#
108
kickit=true
109
sidious=false
110
ubuntu1104_64=false
111
aztec=true
112
rzzeus=true
113 114
rzuseq=false
carver=true
115 116
glory=false
redsky=false
hrchilds's avatar
hrchilds committed
117 118 119 120 121 122 123 124 125 126 127 128

ver=undefined

#
# The loop is executed once for each symbol on the execute line.  This means
# that $1 may be blank for later executions of the loop if any "shift 2"
# commands are executed.  The variable abc is not used in the loop.
#
for abc
do
   case $1 in
      -none)
129
         kickit=false
130
         sidious=false
131
         ubuntu1104_64=false
132
         aztec=false
133
         rzzeus=false
134
         carver=false
135 136
         glory=false
         redsky=false
hrchilds's avatar
hrchilds committed
137 138
         shift
         ;;
139 140 141 142 143 144 145 146
      -kickit)
         kickit=false
         shift
         ;;
      +kickit)
         kickit=true
         shift
         ;;
147 148 149 150 151 152 153 154
      -sidious)
         sidious=false
         shift
         ;;
      +sidious)
         sidious=true
         shift
         ;;
155 156 157 158 159 160 161 162
      -ubuntu1104_64)
         ubuntu1104_64=false
         shift
         ;;
      +ubuntu1104_64)
         ubuntu1104_64=true
         shift
         ;;
163 164
      -aztec)
         aztec=false
hrchilds's avatar
hrchilds committed
165 166
         shift
         ;;
167 168
      +aztec)
         aztec=true
hrchilds's avatar
hrchilds committed
169 170
         shift
         ;;
171 172 173 174 175 176 177 178
      -rzzeus)
         rzzeus=false
         shift
         ;;
      +rzzeus)
         rzzeus=true
         shift
         ;;
179 180
      -rzuseq)
         rzuseq=false
hrchilds's avatar
hrchilds committed
181 182
         shift
         ;;
183 184 185 186 187 188 189 190 191 192
      +rzuseq)
         rzuseq=true
         shift
         ;;
      -carver)
         carver=false
         shift
         ;;
      +carver)
         carver=true
hrchilds's avatar
hrchilds committed
193 194
         shift
         ;;
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
      -glory)
         glory=false
         shift
         ;;
      +glory)
         glory=true
         shift
         ;;
      -redsky)
         redsky=false
         shift
         ;;
      +redsky)
         redsky=true
         shift
         ;;
hrchilds's avatar
hrchilds committed
211 212 213 214 215 216 217 218 219 220 221 222
      -v)
         ver=$2
         shift 2
         ;;
   esac
done

#
# Check that the version was provided.
#
if [ $ver = undefined ]
then
223
   echo "Usage: [-none] [-<machine name>] -v <version>"
hrchilds's avatar
hrchilds committed
224 225 226 227 228 229
   exit
fi

#
# Check that the visit install script is present.
#
hrchilds's avatar
hrchilds committed
230
if [ ! -e visit-install ]
hrchilds's avatar
hrchilds committed
231 232
then
   echo "visit-install is missing."
hrchilds's avatar
hrchilds committed
233 234 235 236 237 238
   exit
fi

ver2=`echo $ver | tr "." "_"`
ver=`echo $ver2 | tr "_" "."`

239 240 241 242 243 244
#
# Install on kickit.
#
rm -f kickit
cat <<EOF > kickit
#!/bin/sh
245
./visit-install -private -c llnl_open -g visit -b bdivp -gw -l $ver linux-x86_64-rhel5 /usr/gapps/visit > installlog 2>&1
246 247 248 249
rm -f resultlog
echo "        install of visit on kickit"          > resultlog 2>&1
echo "       ----------------------------"         >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
250
df -k /usr/gapps/visit                             >> resultlog 2>&1
251
echo ""                                            >> resultlog 2>&1
252
ls -l /usr/gapps/visit/$ver+/linux-x86_64/bin      >> resultlog 2>&1
253
echo ""                                            >> resultlog 2>&1
254 255 256
echo "number of database plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
257 258
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
259
ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/\/usr\/gapps\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
260 261 262 263 264 265
EOF

if [ $kickit = true ]
then
   if [ $test = no ]
   then
266 267
      scp kickit:/scratch/$user/kickit/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-x86_64-rhel5.tar.gz
      scp visit$ver2.linux-x86_64-rhel5.tar.gz kickit:visit$ver2.linux-x86_64-rhel5.tar.gz
268 269 270 271 272 273
      scp visit-install kickit:
      scp kickit kickit:kickit_install
      ssh kickit "chmod 750 kickit_install;./kickit_install"
   fi
fi

274 275 276 277 278 279
#
# Install on sidious.
#
rm -f sidious
cat <<EOF > sidious
#!/bin/sh
280
./visit-install -private -c llnl_open -g visit -b bdivp -gw -l $ver linux-x86_64-rhel5 /usr/gapps/visit > installlog 2>&1
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
rm -f resultlog
echo "        install of visit on sidious"         > resultlog 2>&1
echo "       -----------------------------"        >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
df -k /usr/gapps/visit                             >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
ls -l /usr/gapps/visit/$ver+/linux-x86_64/bin      >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "number of database plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/\/usr\/gapps\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
EOF

if [ $sidious = true ]
then
   if [ $test = no ]
   then
301 302
      scp sidious:/tmp/$user/sidious/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-x86_64-rhel5.tar.gz
      scp visit$ver2.linux-x86_64-rhel5.tar.gz sidious:visit$ver2.linux-x86_64-rhel5.tar.gz
303 304 305 306 307 308
      scp visit-install sidious:
      scp sidious sidious:sidious_install
      ssh sidious "chmod 750 sidious_install;./sidious_install"
   fi
fi

309 310 311 312 313 314
#
# Install on ubuntu1104_64.
#
rm -f ubuntu1104_64
cat <<EOF > ubuntu1104_64
#!/bin/sh
315
./visit-install -private -c llnl_open -g visit -b bdivp -gw -l $ver linux-x86_64-ubuntu11 /home/visit/visit > installlog 2>&1
316 317 318 319
rm -f resultlog
echo "      install of visit on ubuntu1104_64"      > resultlog 2>&1
echo "     -----------------------------------"    >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
320
df -k /home/visit/visit                            >> resultlog 2>&1
321
echo ""                                            >> resultlog 2>&1
322
ls -l /home/visit/visit/$ver+/linux-x86_64/bin     >> resultlog 2>&1
323
echo ""                                            >> resultlog 2>&1
324 325 326
echo "number of database plugins = "\`ls /home/visit/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /home/visit/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /home/visit/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
327 328
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
329
ls /home/visit/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/\/home\/visit\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
330 331 332 333 334 335
EOF

if [ $ubuntu1104_64 = true ]
then
   if [ $test = no ]
   then
336
      cp /home/visit/ubuntu1104_64/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-x86_64-ubuntu11.tar.gz
337
      scp ubuntu1104_64 ubuntu1104_64_install
338
      chmod 750 ubuntu1104_64_install;./ubuntu1104_64_install
339 340 341
   fi
fi

hrchilds's avatar
hrchilds committed
342
#
343
# Install on aztec.
hrchilds's avatar
hrchilds committed
344
#
345 346
rm -f aztec
cat <<EOF > aztec
hrchilds's avatar
hrchilds committed
347
#!/bin/sh
348
./visit-install -private -c llnl_open_cz -g visit -b bdivp -gw -l $ver linux-aztec /usr/gapps/visit > installlog 2>&1
349 350 351 352 353
cp /usr/gapps/visit/nvidia304-libs/*.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib
ln -s libGL.so.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib/libGL.so
ln -s libGL.so.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib/libGL.so.1
chmod 775 /usr/gapps/visit/$ver+/linux-x86_64/lib/*.304.54
chgrp visit /usr/gapps/visit/$ver+/linux-x86_64/lib/*.304.54
hrchilds's avatar
hrchilds committed
354
rm -f resultlog
355 356
echo "        install of visit on aztec"           > resultlog 2>&1
echo "       ---------------------------"          >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
357 358 359
echo ""                                            >> resultlog 2>&1
df -k /usr/gapps/visit                             >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
360
ls -l /usr/gapps/visit/$ver+/linux-x86_64/bin      >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
361
echo ""                                            >> resultlog 2>&1
362 363 364
echo "number of database plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
365 366
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
367
ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/\/usr\/gapps\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
368
mail -s "VisIt install ($ver): aztec" $emailName < resultlog
hrchilds's avatar
hrchilds committed
369 370
EOF

371
if [ $aztec = true ]
hrchilds's avatar
hrchilds committed
372 373 374
then
   if [ $test = no ]
   then
375 376
      scp aztec3:/usr/tmp/$user/aztec/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-aztec.tar.gz
      scp visit$ver2.linux-aztec.tar.gz aztec:
377 378 379
      scp visit-install aztec:
      scp aztec aztec:aztec_install
      ssh aztec "chmod 750 aztec_install;./aztec_install"
hrchilds's avatar
hrchilds committed
380 381 382
   fi
fi

383 384 385 386 387 388
#
# Install on rzzeus.
#
rm -f rzzeus
cat <<EOF > rzzeus
#!/bin/sh
389
./visit-install -private -c llnl_open_rz -g visit -b bdivp -gw -l $ver linux-rzzeus /usr/gapps/visit > installlog 2>&1
390 391 392 393 394
cp /usr/gapps/visit/nvidia304-libs/*.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib
ln -s libGL.so.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib/libGL.so
ln -s libGL.so.304.54 /usr/gapps/visit/$ver+/linux-x86_64/lib/libGL.so.1
chmod 775 /usr/gapps/visit/$ver+/linux-x86_64/lib/*.304.54
chgrp visit /usr/gapps/visit/$ver+/linux-x86_64/lib/*.304.54
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
rm -f resultlog
echo "        install of visit on rzzeus"          > resultlog 2>&1
echo "       ----------------------------"         >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
df -k /usr/gapps/visit                             >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
ls -l /usr/gapps/visit/$ver+/linux-x86_64/bin      >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "number of database plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
ls /usr/gapps/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/\/usr\/gapps\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
mail -s "VisIt install ($ver): rzzeus" $emailName < resultlog
EOF

if [ $rzzeus = true ]
then
   if [ $test = no ]
   then
416 417 418 419
      scp rzzeus286:/usr/tmp/$user/rzzeus/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-rzzeus.tar.gz
      scp visit$ver2.linux-rzzeus.tar.gz rzzeus:
      scp visit-install rzzeus:
      scp rzzeus rzzeus:rzzeus_install
420
      ssh rzzeus "chmod 750 rzzeus_install;./rzzeus_install"
421 422 423
   fi
fi

hrchilds's avatar
hrchilds committed
424
#
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
# Install on rzuseq.
#
rm -f rzuseq
cat <<EOF > rzuseq
#!/bin/sh
./visit-install -private -c llnl_open_rz -g visit -b bdivp -gw -l $ver linux-ppc64-BGQ /usr/gapps/visit > installlog 2>&1
rm -f resultlog
echo "        install of visit on rzuseq"          > resultlog 2>&1
echo "       ----------------------------"         >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
df -k /usr/gapps/visit                             >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
ls -l /usr/gapps/visit/$ver+/linux-ppc64/bin       >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "number of database plugins = (statically linked)" >> resultlog 2>&1
echo "number of operator plugins = (statically linked)" >> resultlog 2>&1
echo "number of plot plugins = (statically linked)" >> resultlog 2>&1
mail -s "VisIt install ($ver): rzuseq" $emailName < resultlog
EOF

if [ $rzuseq = true ]
then
   if [ $test = no ]
   then
      scp rzuseqlac2:/usr/tmp/$user/rzuseq/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-ppc64-BGQ.tar.gz
      scp visit$ver2.linux-ppc64-BGQ.tar.gz rzuseqlac2:
      scp visit-install rzuseqlac2:
      scp rzuseq rzuseqlac2:rzuseq_install
      ssh rzuseqlac2 "chmod 750 rzuseq_install;./rzuseq_install"
   fi
fi

#
# Install on carver.
hrchilds's avatar
hrchilds committed
459
#
460 461
rm -f carver
cat <<EOF > carver
hrchilds's avatar
hrchilds committed
462
#!/bin/sh
463
./visit-install -private -c nersc -b bdivp $ver linux-carver visit > installlog 2>&1
hrchilds's avatar
hrchilds committed
464
rm -f resultlog
465
echo "        install of visit on carver"          > resultlog 2>&1
466
echo "       ----------------------------"         >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
467 468 469
echo ""                                            >> resultlog 2>&1
df -k visit                                        >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
470
ls -l visit/$ver+/linux-x86_64/bin                 >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
471
echo ""                                            >> resultlog 2>&1
472 473 474
echo "number of database plugins = "\`ls visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
hrchilds's avatar
hrchilds committed
475 476
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
477
ls visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
478
mail -s "VisIt install ($ver): carver " $emailName < resultlog
hrchilds's avatar
hrchilds committed
479 480
EOF

481
if [ $carver = true ]
hrchilds's avatar
hrchilds committed
482 483 484
then
   if [ $test = no ]
   then
485 486 487 488 489
      scp carver.nersc.gov:/usr/tmp/$user/carver/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-carver.tar.gz
      scp visit$ver2.linux-carver.tar.gz carver.nersc.gov:
      scp visit-install carver.nersc.gov:
      scp carver carver.nersc.gov:carver_install
      ssh carver.nersc.gov "chmod 750 carver_install;./carver_install"
hrchilds's avatar
hrchilds committed
490 491 492
   fi
fi

493 494 495 496 497 498
#
# Install on glory.
#
rm -f glory
cat <<EOF > glory
#!/bin/sh
499
./visit-install -private -c sandia -l $ver linux-glory /projects/visit > installlog 2>&1
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
rm -f resultlog
echo "        install of visit on glory"           > resultlog 2>&1
echo "       ---------------------------"          >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
df -k /projects/visit                              >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
ls -l /projects/visit/$ver+/linux-x86_64/bin       >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "number of database plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
ls /projects/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/projects\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
mail -s "VisIt install ($ver): glory" $emailName < resultlog
EOF

if [ $glory = true ]
then
   if [ $test = no ]
   then
      cp /usr/tmp/$user/glory/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-glory.tar.gz
      cp glory glory_install
      chmod 750 glory_install;./glory_install
   fi
fi

#
# Install on redsky.
#
rm -f redsky
cat <<EOF > redsky
#!/bin/sh
533
./visit-install -private -c sandia -l $ver linux-redsky /projects/visit > installlog 2>&1
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560
rm -f resultlog
echo "        install of visit on redsky"          > resultlog 2>&1
echo "       ----------------------------"         >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
df -k /projects/visit                              >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
ls -l /projects/visit/$ver+/linux-x86_64/bin       >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "number of database plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/databases/libI* | wc -l\` >> resultlog 2>&1
echo "number of operator plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/operators/libI* | wc -l\` >> resultlog 2>&1
echo "number of plot plugins = "\`ls /projects/visit/$ver+/linux-x86_64/plugins/plots/libI* | wc -l\` >> resultlog 2>&1
echo ""                                            >> resultlog 2>&1
echo "The database plugins:"                       >> resultlog 2>&1
ls /projects/visit/$ver+/linux-x86_64/plugins/databases/libI* | sed "s/projects\/visit\/$ver+\/linux-x86_64\/plugins\/databases\/libI//" | sed "s/Database.so//" >> resultlog 2>&1
mail -s "VisIt install ($ver): redsky" $emailName < resultlog
EOF

if [ $redsky = true ]
then
   if [ $test = no ]
   then
      cp /usr/tmp/$user/redsky/visitbuild/visit$ver2.linux-x86_64.tar.gz visit$ver2.linux-redsky.tar.gz
      cp redsky redsky_install
      chmod 750 redsky_install;./redsky_install
   fi
fi

hrchilds's avatar
hrchilds committed
561 562 563 564 565
#
# Clean up.
#
if [ $test = no ]
then
566
   rm -f kickit sidious ubuntu1104_64 aztec rzuseq rzzeus carver glory redsky
hrchilds's avatar
hrchilds committed
567
fi