#!/bin/csh
# ~/bin/.csh/hosts_edit
# http://www.berklix.com/~jhs/bin/.sh/hosts_edit
# Files to edit when adding a new host:
echo vi \
/etc/exports \
/home/jhs/.Xdefaults.`hostname -s` \
/home/jhs/.xinitrc \
/home/jhs/.xsession \
/home/jhs/bin/.csh/consolev \
/home/jhs/bin/.sh/hosts	\
/home/jhs/public_html/src/bsd/fixes/FreeBSD/src/jhs/etc/sendmail/Makefile.all.REL=8.2-RELEASE.diff \
/home/jhs/public_html/src/bsd/fixes/FreeBSD/src/jhs/sys/i386/conf/HOLZ \
/home/jhs/public_html/src/bsd/fixes/FreeBSD/src/jhs/sys/i386/conf/Makefile \
/site/Distfile \
/site/domain/js.berklix.net/etc/hosts.equiv.gateway \
/site/domain/js.berklix.net/etc/namedb/master/js.berklix.net.fwd \
/site/domain/js.berklix.net/etc/namedb/master/js.berklix.net.rev \
/site/domain/this/etc/mail/Makefile \
/site/etc/csh.cshrc.master \
/site/etc/hosts.equiv \
/site/etc/system.fvwmrc \

echo "Edit /etc/exports on other hosts that are up."
foreach i ( `hosts` ) 
	ping -c 1 $i && test -e /host/$i/etc/exports && vi /host/$i/etc/exports
	end
