#!/bin/csh -f
#
# Shell script to update all 've' monitoring files.  Burns lots
# of BTUs; take out whichever lines you are not interested in.
# Usage is 'watch' from within your empire data directory.  Assumes
# realm #0 includes your entire country.
#
if (! $?COUNTRY) then
    echo -n "Country: "
    setenv COUNTRY $<
endif
#
if (! $?PASSWORD) then
    echo -n "Password: "
    stty -echo
    setenv PASSWORD $<
    stty echo
endif
#
echo "spy" >! spyout
echo "coast" >! coastout
empire $COUNTRY << EOI
$PASSWORD
map #0 >>! mapout
cen #0 >>! cenout
com #0 >>! comout
ship >>! shipout
plane >>! planeout
spy #0 >>! spyout
coast #0 >>! coastout
quit
EOI
