#!/bin/csh

#  mirror net-dist /pub/mac files onto /u1/pub partition
rm -f /u1/mirror/mirror.log
/u1/mirror/mirror  -d -d -d -d -C/u1/mirror/mirror.mac > /u1/mirror/mirror.log

# now mirror the /u1/pub/dos directory
/u1/mirror/mirror  -d -d -d -d -C/u1/mirror/mirror.dos >> /u1/mirror/mirror.log

# now mirror the /u1/pub/anti-virus directory
/u1/mirror/mirror  -d -d -d -d -C/u1/mirror/mirror.anti-virus >> /u1/mirror/mirror.log

#  create .index files needed for the sa2ti program
cd /u1/pub
/var/ti/util/mirror.index * > .index

#  get tickets and run the sa2ti program to
#  add or delete items from TechInfo
setenv KRBTKFILE "/tmp/sa2ti"
/var/ti/local/krbtgp -s -keyfile /etc/ti_serve_key ti_serve

# add /pub/mac to techinfo
cd /u1/pub/mac
/mit/techinfodev/decmipsbin/sa2ti -r -server techinfo

# update TechInfo with the dos stuff, every file is a binary
# except the known text items.
cd /u1/pub/dos
/mit/techinfodev/decmipsbin/sa2ti -r -guess 116 -server techinfo

# update TechInfo with the anti-virus stuff, every file is a binary
# except the known text items.
cd /u1/pub/anti-virus
/mit/techinfodev/decmipsbin/sa2ti -r -guess 116 -server techinfo

kdestroy



