Commit 16595c27 authored by hrchilds's avatar hrchilds
Browse files

Update from May 21, 2004

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@246 18c085ea-50e0-402c-830e-de6fd14e8384
parent ef49ecae
...@@ -36,7 +36,7 @@ Unix and Mac OS X: ...@@ -36,7 +36,7 @@ Unix and Mac OS X:
to function properly. You can install multiple binaries into the to function properly. You can install multiple binaries into the
same directory. For example, you could then execute same directory. For example, you could then execute
visit-install -a 1.3.1 linux /usr/local/visit visit-install 1.3.1 linux /usr/local/visit
to add a linux, 1.3.1 version of visit to the same directory. to add a linux, 1.3.1 version of visit to the same directory.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Date: October 26, 1996 # Date: October 26, 1996
# #
# Usage # Usage
# visit-install [-a] [-c open | closed] [-g group] [-gw] [-l] # visit-install [-c open | closed] [-g group] [-gw] [-l] [-r]
# [-beta | -private] version platform directory # [-beta | -private] version platform directory
# #
# The default is to install this version as the current version. # The default is to install this version as the current version.
...@@ -64,11 +64,15 @@ ...@@ -64,11 +64,15 @@
# Eric Brugger, Tue Dec 23 11:05:37 PST 2003 # Eric Brugger, Tue Dec 23 11:05:37 PST 2003
# I added an option to enable usage logging. # I added an option to enable usage logging.
# #
# Eric Brugger, Wed May 12 11:05:58 PDT 2004
# I changed the default for append to be true, and replaced the -a
# option with -r to make it false.
#
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
set Compress = COMPRESS set Compress = COMPRESS
set append = false set append = true
set beta = false set beta = false
set private = false set private = false
set config = prompt set config = prompt
...@@ -95,8 +99,8 @@ while ($option_found == true) ...@@ -95,8 +99,8 @@ while ($option_found == true)
shift shift
shift shift
breaksw breaksw
case -a: case -r:
set append = true set append = false
shift shift
breaksw breaksw
case -beta: case -beta:
...@@ -123,7 +127,7 @@ while ($option_found == true) ...@@ -123,7 +127,7 @@ while ($option_found == true)
end end
if ($#argv != 3) then if ($#argv != 3) then
echo "Usage: visit-install [-a] [-c open | closed] [-g group] [-gw] [-l]" echo "Usage: visit-install [-c open | closed] [-g group] [-gw] [-l] [-r]"
echo " [-beta | -private] version platform directory" echo " [-beta | -private] version platform directory"
exit (1) exit (1)
endif endif
......
...@@ -48,6 +48,19 @@ do ...@@ -48,6 +48,19 @@ do
emperor=false emperor=false
shift shift
;; ;;
-bdiv)
hitit=true
sunset=true
warp=true
shift
;;
-lc)
sc=true
tidalwave=true
white=true
emperor=true
shift
;;
-hitit) -hitit)
hitit=false hitit=false
shift shift
...@@ -144,15 +157,26 @@ fi ...@@ -144,15 +157,26 @@ fi
ver2=`echo $ver | tr "." "_"` ver2=`echo $ver | tr "." "_"`
ver=`echo $ver2 | tr "_" "."` ver=`echo $ver2 | tr "_" "."`
#
# Create the header for the install script for the B Division network.
#
rm -f bdiv
cat <<EOF > bdiv
#!/bin/sh
rm -f resultlog
touch resultlog
EOF
# #
# Install on hitit. # Install on hitit.
# #
rm -f hitit rm -f hitit
cat <<EOF > hitit cat <<EOF > hitit
#!/bin/sh
./visit-install -private -c closed -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1 ./visit-install -r -private -c closed -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
rm -f resultlog echo "" >> resultlog 2>&1
echo " install of visit on hitit" > resultlog 2>&1 echo " install of visit on hitit" >> resultlog 2>&1
echo " ---------------------------" >> resultlog 2>&1 echo " ---------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -171,11 +195,10 @@ if [ $hitit = true ] ...@@ -171,11 +195,10 @@ if [ $hitit = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat hitit >> bdiv
scp -P 22 hitit:/var/tmp/$user/hitit/visitbuild/visit$ver2.linux.tar.gz . scp -P 22 hitit:/var/tmp/$user/hitit/visitbuild/visit$ver2.linux.tar.gz .
scp -P 22 visit$ver2.linux.tar.gz hitit: scp -P 22 visit$ver2.linux.tar.gz sunset:
scp -P 22 visit-install hitit:
scp -P 22 hitit hitit:hitit_install
ssh -p 22 hitit "chmod 750 hitit_install;./hitit_install"
fi fi
fi fi
...@@ -184,15 +207,10 @@ fi ...@@ -184,15 +207,10 @@ fi
# #
rm -f sunset rm -f sunset
cat <<EOF > sunset cat <<EOF > sunset
#!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c closed -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1
then echo "" >> resultlog 2>&1
./visit-install -private -a -c closed -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1 echo " install of visit on sunset" >> resultlog 2>&1
else
./visit-install -private -c closed -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog
echo " install of visit on sunset" > resultlog 2>&1
echo " ----------------------------" >> resultlog 2>&1 echo " ----------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -211,11 +229,10 @@ if [ $sunset = true ] ...@@ -211,11 +229,10 @@ if [ $sunset = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat sunset >> bdiv
scp -P 22 sunset:/export/scratch/$user/sunset/visitbuild/visit$ver2.sunos5.tar.gz . scp -P 22 sunset:/export/scratch/$user/sunset/visitbuild/visit$ver2.sunos5.tar.gz .
scp -P 22 visit$ver2.sunos5.tar.gz sunset: scp -P 22 visit$ver2.sunos5.tar.gz sunset:
scp -P 22 visit-install sunset:
scp -P 22 sunset sunset:sunset_install
ssh -p 22 sunset "chmod 750 sunset_install;./sunset_install"
fi fi
fi fi
...@@ -224,15 +241,10 @@ fi ...@@ -224,15 +241,10 @@ fi
# #
rm -f warp rm -f warp
cat <<EOF > warp cat <<EOF > warp
#!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install $verflag -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
then echo "" >> resultlog 2>&1
./visit-install $verflag -a -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1 echo " install of visit on warp" >> resultlog 2>&1
else
./visit-install $verflag -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog
echo " install of visit on warp" > resultlog 2>&1
echo " --------------------------" >> resultlog 2>&1 echo " --------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -251,23 +263,43 @@ if [ $warp = true ] ...@@ -251,23 +263,43 @@ if [ $warp = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat warp >> bdiv
scp tidalwave:/fc/san1/$user/tidalwave/visitbuild/visit$ver2.irix6.tar.gz . scp tidalwave:/fc/san1/$user/tidalwave/visitbuild/visit$ver2.irix6.tar.gz .
scp -P 22 visit$ver2.irix6.tar.gz warp: scp -P 22 visit$ver2.irix6.tar.gz sunset:
scp -P 22 visit-install warp:
scp -P 22 warp warp:warp_install
ssh -p 22 warp "chmod 750 warp_install;./warp_install"
fi fi
fi fi
#
# Install on the B Division network.
#
if [ $test = no ]
then
scp -P 22 visit-install sunset:
scp -P 22 bdiv sunset:bdiv_install
ssh -p 22 sunset "chmod 750 bdiv_install;./bdiv_install"
fi
#
# Create the header for the install script for the lc machines.
#
rm -f lc
cat <<EOF > lc
#!/bin/sh
rm -f resultlog
touch resultlog
EOF
# #
# Install on sc. # Install on sc.
# #
rm -f sc rm -f sc
cat <<EOF > sc cat <<EOF > sc
#!/bin/sh
./visit-install -private -c closed -g visit -gw -l $ver osf1 /usr/gapps/visit > installlog 2>&1 ./visit-install -r -private -c closed -g visit -gw -l $ver osf1 /usr/gapps/visit > installlog 2>&1
rm -f resultlog echo "" >> resultlog 2>&1
echo " install of visit on sc" > resultlog 2>&1 echo " install of visit on sc" >> resultlog 2>&1
echo " ------------------------" >> resultlog 2>&1 echo " ------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -286,11 +318,10 @@ if [ $sc = true ] ...@@ -286,11 +318,10 @@ if [ $sc = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat sc >> lc
scp sc1:/nfs/tmp3/$user/sc/visitbuild/visit$ver2.osf1.tar.gz . scp sc1:/nfs/tmp3/$user/sc/visitbuild/visit$ver2.osf1.tar.gz .
scp visit$ver2.osf1.tar.gz sc1: scp visit$ver2.osf1.tar.gz sc1:
scp visit-install sc1:
scp sc sc1:sc_install
ssh sc1 "chmod 750 sc_install;./sc_install"
fi fi
fi fi
...@@ -299,15 +330,10 @@ fi ...@@ -299,15 +330,10 @@ fi
# #
rm -f tidalwave rm -f tidalwave
cat <<EOF > tidalwave cat <<EOF > tidalwave
#!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
then echo "" >> resultlog 2>&1
./visit-install -private -a -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1 echo " install of visit on tidalwave" >> resultlog 2>&1
else
./visit-install -private -c closed -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog
echo " install of visit on tidalwave" > resultlog 2>&1
echo " -------------------------------" >> resultlog 2>&1 echo " -------------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -326,11 +352,10 @@ if [ $tidalwave = true ] ...@@ -326,11 +352,10 @@ if [ $tidalwave = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat tidalwave >> lc
scp tidalwave:/fc/san1/$user/tidalwave/visitbuild/visit$ver2.irix6.tar.gz . scp tidalwave:/fc/san1/$user/tidalwave/visitbuild/visit$ver2.irix6.tar.gz .
scp visit$ver2.irix6.tar.gz sc1: scp visit$ver2.irix6.tar.gz sc1:
scp visit-install sc1:
scp tidalwave sc1:tidalwave_install
ssh sc1 "chmod 750 tidalwave_install;./tidalwave_install"
fi fi
fi fi
...@@ -339,15 +364,10 @@ fi ...@@ -339,15 +364,10 @@ fi
# #
rm -f white rm -f white
cat <<EOF > white cat <<EOF > white
#!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c closed -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1
then echo "" >> resultlog 2>&1
./visit-install -private -a -c closed -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1 echo " install of visit on white" >> resultlog 2>&1
else
./visit-install -private -c closed -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog
echo " install of visit on white" > resultlog 2>&1
echo " ---------------------------" >> resultlog 2>&1 echo " ---------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -366,11 +386,10 @@ if [ $white = true ] ...@@ -366,11 +386,10 @@ if [ $white = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat white >> lc
scp white:/p/gw1/$user/white/visitbuild/visit$ver2.aix.tar.gz . scp white:/p/gw1/$user/white/visitbuild/visit$ver2.aix.tar.gz .
scp visit$ver2.aix.tar.gz sc1: scp visit$ver2.aix.tar.gz sc1:
scp visit-install sc1:
scp white sc1:white_install
ssh sc1 "chmod 750 white_install;./white_install"
fi fi
fi fi
...@@ -379,15 +398,10 @@ fi ...@@ -379,15 +398,10 @@ fi
# #
rm -f emperor rm -f emperor
cat <<EOF > emperor cat <<EOF > emperor
#!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install $verflag -c closed -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
then echo "" >> resultlog 2>&1
./visit-install $verflag -a -c closed -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1 echo " install of visit on emperor" >> resultlog 2>&1
else
./visit-install $verflag -c closed -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog
echo " install of visit on emperor" > resultlog 2>&1
echo " -----------------------------" >> resultlog 2>&1 echo " -----------------------------" >> resultlog 2>&1
echo "" >> resultlog 2>&1 echo "" >> resultlog 2>&1
df -k /usr/gapps/visit >> resultlog 2>&1 df -k /usr/gapps/visit >> resultlog 2>&1
...@@ -406,18 +420,27 @@ if [ $emperor = true ] ...@@ -406,18 +420,27 @@ if [ $emperor = true ]
then then
if [ $test = no ] if [ $test = no ]
then then
cat emperor >> lc
scp emperor0:/usr/tmp/$user/emperor/visitbuild/visit$ver2.linux.tar.gz . scp emperor0:/usr/tmp/$user/emperor/visitbuild/visit$ver2.linux.tar.gz .
scp visit$ver2.linux.tar.gz sc1: scp visit$ver2.linux.tar.gz sc1:
scp visit-install sc1:
scp emperor sc1:emperor_install
ssh sc1 "chmod 750 emperor_install;./emperor_install"
fi fi
fi fi
#
# Install on the lc machines.
#
if [ $test = no ]
then
scp -P 22 visit-install sc1:
scp -P 22 lc sc1:lc_install
ssh -p 22 sc1 "chmod 750 lc_install;./lc_install"
fi
# #
# Clean up. # Clean up.
# #
if [ $test = no ] if [ $test = no ]
then then
rm -f hitit sunset warp sc tidalwave white emperor rm -f bdiv hitit sunset lc warp sc tidalwave white emperor
fi fi
...@@ -181,7 +181,7 @@ ver=`echo $ver2 | tr "_" "."` ...@@ -181,7 +181,7 @@ ver=`echo $ver2 | tr "_" "."`
rm -f kickit rm -f kickit
cat <<EOF > kickit cat <<EOF > kickit
#!/bin/sh #!/bin/sh
./visit-install -private -c open -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1 ./visit-install -r -private -c open -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
rm -f resultlog rm -f resultlog
echo " install of visit on kickit" > resultlog 2>&1 echo " install of visit on kickit" > resultlog 2>&1
echo " ----------------------------" >> resultlog 2>&1 echo " ----------------------------" >> resultlog 2>&1
...@@ -218,12 +218,7 @@ fi ...@@ -218,12 +218,7 @@ fi
rm -f sunspot rm -f sunspot
cat <<EOF > sunspot cat <<EOF > sunspot
#!/bin/sh #!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c open -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1
then
./visit-install -private -a -c open -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1
else
./visit-install -private -c open -g visit -gw -l $ver sunos5 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog rm -f resultlog
echo " install of visit on sunspot" > resultlog 2>&1 echo " install of visit on sunspot" > resultlog 2>&1
echo " -----------------------------" >> resultlog 2>&1 echo " -----------------------------" >> resultlog 2>&1
...@@ -259,12 +254,7 @@ fi ...@@ -259,12 +254,7 @@ fi
rm -f hyper rm -f hyper
cat <<EOF > hyper cat <<EOF > hyper
#!/bin/sh #!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install $verflag -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
then
./visit-install $verflag -a -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
else
./visit-install $verflag -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog rm -f resultlog
echo " install of visit on hyper" > resultlog 2>&1 echo " install of visit on hyper" > resultlog 2>&1
echo " ---------------------------" >> resultlog 2>&1 echo " ---------------------------" >> resultlog 2>&1
...@@ -300,7 +290,7 @@ fi ...@@ -300,7 +290,7 @@ fi
rm -f gps rm -f gps
cat <<EOF > gps cat <<EOF > gps
#!/bin/sh #!/bin/sh
./visit-install -private -c open -g visit -gw -l $ver osf1 /usr/gapps/visit > installlog 2>&1 ./visit-install -r -private -c open -g visit -gw -l $ver osf1 /usr/gapps/visit > installlog 2>&1
rm -f resultlog rm -f resultlog
echo " install of visit on gps" > resultlog 2>&1 echo " install of visit on gps" > resultlog 2>&1
echo " -------------------------" >> resultlog 2>&1 echo " -------------------------" >> resultlog 2>&1
...@@ -336,12 +326,7 @@ fi ...@@ -336,12 +326,7 @@ fi
rm -f riptide rm -f riptide
cat <<EOF > riptide cat <<EOF > riptide
#!/bin/sh #!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
then
./visit-install -private -a -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
else
./visit-install -private -c open -g visit -gw -l $ver irix6 /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog rm -f resultlog
echo " install of visit on riptide" > resultlog 2>&1 echo " install of visit on riptide" > resultlog 2>&1
echo " -----------------------------" >> resultlog 2>&1 echo " -----------------------------" >> resultlog 2>&1
...@@ -377,12 +362,7 @@ fi ...@@ -377,12 +362,7 @@ fi
rm -f frost rm -f frost
cat <<EOF > frost cat <<EOF > frost
#!/bin/sh #!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install -private -c open -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1
then
./visit-install -private -a -c open -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1
else
./visit-install -private -c open -g visit -gw -l $ver aix /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog rm -f resultlog
echo " install of visit on frost" > resultlog 2>&1 echo " install of visit on frost" > resultlog 2>&1
echo " ---------------------------" >> resultlog 2>&1 echo " ---------------------------" >> resultlog 2>&1
...@@ -418,12 +398,7 @@ fi ...@@ -418,12 +398,7 @@ fi
rm -f pengra rm -f pengra
cat <<EOF > pengra cat <<EOF > pengra
#!/bin/sh #!/bin/sh
if [ -d /usr/gapps/visit/$ver ] ./visit-install $verflag -c open -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
then
./visit-install $verflag -a -c open -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
else
./visit-install $verflag -c open -g visit -gw -l $ver linux /usr/gapps/visit > installlog 2>&1
fi
rm -f resultlog rm -f resultlog
echo " install of visit on pengra" > resultlog 2>&1 echo " install of visit on pengra" > resultlog 2>&1
echo " ----------------------------" >> resultlog 2>&1 echo " ----------------------------" >> resultlog 2>&1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment