home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3.4.17 [SPARC, PA-RISC]
/
nextstep33_risc.iso
/
Upgrader.app
/
Default.upgrade
/
RemoteUpgrade
< prev
next >
Wrap
Text File
|
1994-09-27
|
987b
|
39 lines
#!/bin/csh -f
set me = $0
if ( $#argv != 2 ) then
echo "Usage: $me <client> <upgradePartition>"
exit 1
endif
set nonomatch
set myfolder = ${me:h}
set plan = ${myfolder}/Release3.3.uplan
set bom = ${myfolder}/Release3.3.uplan.bom
if ( ! -f "$plan" ) then
echo "Cannot find plan file"
exit 1
endif
if ( ! -f "$bom" ) then
echo "Cannot find bom file"
exit 1
endif
set pre = ${argv[2]}/Upgrader.app/Default.upgrade/PreProcess
set slave = ${argv[2]}/Upgrader.app/UpgradeSlave
set post = ${argv[2]}/Upgrader.app/Default.upgrade/PostProcess
echo "Executing PreProcess script..."
/usr/ucb/rsh $argv[1] exec "$pre / $argv[2] >> /UpgradeLog"
echo "Copying new boms..."
/usr/ucb/rsh $argv[1] exec "/bin/cp -r ${myfolder}/UpdatedBoms /"
echo "Executing UpgradeSlave..."
/usr/ucb/rsh $argv[1] exec "$slave -q $plan $argv[2] / $bom"
echo "Executing PostProcess script..."
/usr/ucb/rsh $argv[1] exec "$post / $argv[2] >> /UpgradeLog"
echo "Remote upgrade complete for $argv[1]"
exit 0