[net.games.emp] Shell scripts for empire updates

carlton@genrad.UUCP (Carl Hommel) (09/26/84)

The following shar archive is quite useful for empire players
who are at sites with restricted hours.  Your glorious empire will
be updated, and files created, each morning.  Just run .auto_daily
once, and it will regenerate itself each morning.  Feel free to
modify the empire commands in .daily_auto.

___Cut_at_this_dashed_line____________________________________________

: to unbundle, "sh" this file -- DO NOT use csh
:  SHAR archive format.  Archive created Wed Sep 26 15:58:38 EDT 1984
echo x - README
sed 's/^X//' >README <<'+FUNKY+STUFF+'
X.auto_daily - 	An at(1) script to update your empire every morning
X		Must be customized
X.daily_auto -	The empire(6) commands to be executed
X		Must be customized
XREADME -	This file
Xdo_power -	A ex(1) script to pretty up a power report
+FUNKY+STUFF+
ls -l README
echo x - do_power
sed 's/^X//' >do_power <<'+FUNKY+STUFF+'
X#! /bin/csh -f
Xex power << __ASDF__
Xg/^\$/d
Xg/ower/d
X%s/     as of/
     as of/
Xx
X__ASDF__
X
+FUNKY+STUFF+
ls -l do_power
echo x - .auto_daily
sed 's/^X//' >.auto_daily <<'+FUNKY+STUFF+'
X#! /bin/csh -fx
Xcd ~/empire
Xempire <country> <password> >> daily_out << __ASDF__
Xexecute .daily_auto
Xbye
X__ASDF__
Xat 700 .auto_daily
+FUNKY+STUFF+
ls -l .auto_daily
echo x - .daily_auto
sed 's/^X//' >.daily_auto <<'+FUNKY+STUFF+'
Xupdate verbose >update
Xrealm # #7
Xpower new >>power
Xnation >nation
Xcountry >country
Xmap # >map
Xcensus # >census
Xcommod # >commod
Xships >ships
Xcoastwatch # ?desig=) >coastwatch
Xbye
X
+FUNKY+STUFF+
ls -l .daily_auto
exit 0