## Process this file with automake to produce Makefile.in

EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README TODO pvm++.m4

SUBDIRS = pvm++ examples doc tests

m4datadir = $(datadir)/aclocal
m4data_DATA = pvm++.m4

dist-hook: TODO-NEWS-README

TEMPFILE = /tmp/pvm++.tmp
HTTPADDRESS = http://pvm-plus-plus.sourceforge.net/
LYNXCOMMAND = lynx -nolist -dump $(HTTPADDRESS)

.PHONY: TODO-NEWS-README

TODO-NEWS-README:
	@$(LYNXCOMMAND) >$(TEMPFILE)
	@awk <$(TEMPFILE) ' /^TODO$$/, /^Documentation$$/ \
		{ if( $$0 != "Documentation")  print }' > TODO
	@awk <$(TEMPFILE) ' /^News$$/, /^License$$/ \
		{ if( $$0 != "License")  print }' |\
		sed 's:([0-9]*KB.*::;s:^.*ftp/US)$$::;s:^ *$$::;' |\
		uniq > NEWS
	@printf "\n\n                            Welcome to pvm++\
		\n                          --------------------\n\n\
		a C++ class library for easy programming the\
		PVM (Parallel Virtual Machine)\n\n\n" > README
	@awk <$(TEMPFILE) ' /^Features$$/, /^Download$$/ \
		{ if( $$0 != "Download")  print }' >> README
	@awk <$(TEMPFILE) ' /^Installation$$/, /^TODO$$/ \
		{ if( $$0 != "TODO")  print }' >> README
	@printf "Documentation\n\n\
		* A reference can be found in the 'doc' subdirectory.\n\
		* Examples are in the 'examples'  subdirectory.\n\
		* For further information please visit:\n\n\
		  \thttp://pvm-plus-plus.sourceforge.net/\n\n" >> README
	@rm $(TEMPFILE)



syntax highlighted by Code2HTML, v. 0.9.1