#!/bin/csh -f
# Solar-SoftWare (SSW) installation Script Generated: Thu Nov 12 11:43:12 MST 2009 by User:  travis
setenv SSW /home/travis/ssw
setenv ssw_sw_sets "ssw_ssw_site ssw_packages_binaries ssw_ssw_gen"
setenv ssw_db_sets ""
setenv ssw /home/travis/ssw
setenv soho /home/travis/ssw/soho
setenv yohkoh /home/travis/ssw/yohkoh
setenv smm /home/travis/ssw/smm
setenv spartan /home/travis/ssw/spartan
setenv packages /home/travis/ssw/packages
setenv trace /home/travis/ssw/trace
setenv cgro /home/travis/ssw/cgro
setenv radio /home/travis/ssw/radio
setenv optical /home/travis/ssw/optical
setenv hessi /home/travis/ssw/hessi
setenv sxi /home/travis/ssw/sxi
setenv goes /home/travis/ssw/goes
setenv solarb /home/travis/ssw/solarb
setenv hinode /home/travis/ssw/hinode
setenv vobs /home/travis/ssw/vobs
setenv stereo /home/travis/ssw/stereo
setenv ydb /home/travis/ssw/dbase/yohkoh
setenv sohodb /home/travis/ssw/dbase/soho
setenv spartandb /home/travis/ssw/dbase/spartan
setenv tracedb /home/travis/ssw/dbase/trace
setenv bin /home/travis/ssw/bin
echo "Uncompressing file: "ssw_packages_binaries.tar.Z
gunzip -f /home/travis/ssw/offline/swmaint/tar/ssw_packages_binaries.tar.Z
mkdir -p $packages
cd $packages
/bin/rm -rf binaries
mkdir binaries
chmod 775 binaries
echo "Installing SW instrument: "binaries
tar -xf /home/travis/ssw/offline/swmaint/tar/ssw_packages_binaries.tar binaries
echo removing /home/travis/ssw/offline/swmaint/tar/ssw_packages_binaries.tar
/bin/rm -f /home/travis/ssw/offline/swmaint/tar/ssw_packages_binaries.tar 
echo "Uncompressing file: "ssw_ssw_gen.tar.Z
gunzip -f /home/travis/ssw/offline/swmaint/tar/ssw_ssw_gen.tar.Z
mkdir -p $ssw
cd $ssw
/bin/rm -rf gen
mkdir gen
chmod 775 gen
echo "Installing SW instrument: "gen
tar -xf /home/travis/ssw/offline/swmaint/tar/ssw_ssw_gen.tar gen
echo removing /home/travis/ssw/offline/swmaint/tar/ssw_ssw_gen.tar
/bin/rm -f /home/travis/ssw/offline/swmaint/tar/ssw_ssw_gen.tar 
echo "Uncompressing file: "ssw_ssw_site.tar.Z
gunzip -f /home/travis/ssw/offline/swmaint/tar/ssw_ssw_site.tar.Z
mkdir -p $ssw
cd $ssw
/bin/rm -rf site
mkdir site
chmod 775 site
echo "Installing SW instrument: "site
tar -xf /home/travis/ssw/offline/swmaint/tar/ssw_ssw_site.tar site
echo removing /home/travis/ssw/offline/swmaint/tar/ssw_ssw_site.tar
/bin/rm -f /home/travis/ssw/offline/swmaint/tar/ssw_ssw_site.tar 
unsetenv ssw_full 0
setenv ssw_fullok 1
cp /home/travis/ssw/offline/swmaint/script/ssw_site.config /home/travis/ssw/site/setup/
