# Makefile to remake the index

index:  note.* Makefile ftp.foot
	echo "			INDEX OF MAGIC NOTES" > index
	echo " " >> index
	cat note.? note.?? | egrep '^Magic note.' >> index
	cat ftp.foot >> index

gate:  
	(cd .. ; rdist -c pub gatekeeper:magic )
	(echo "Gatekeepers,"; echo " "; \
	echo "Please update my portion of /archive for me:"; \
	echo " "; \
	echo "  rsh gatekeeper 'rdist -c /udir/mayo/magic gatekeeper:/archive/pub/DEC/magic'"; \
	echo " "; echo "Thanks,"; echo " "; echo "--Bob") \
	| mail -s "/archive update" mayo
