# # tpop3d/Makefile: this is a makefile for the tpop3d subdirectory # # $Id: Makefile,v 1.14 2004/01/20 19:20:54 chris Exp $ # # # Stuff for this directory # WWW_PATH = /tpop3d/ FILES = index.html oldversions.html README README.auth_mysql CREDITS CHANGES HACKING TODO FAQ \ tpop3d-0.6.tar.gz tpop3d-0.7.tar.gz tpop3d-0.8.tar.gz \ tpop3d-1.1.tar.gz tpop3d-1.1.2.tar.gz tpop3d-1.2.1.tar.gz \ tpop3d-1.2.2.tar.gz tpop3d-1.2.3.tar.gz tpop3d-1.2.4.tar.gz \ tpop3d-1.3.1.tar.gz tpop3d-1.3.2.tar.gz tpop3d-1.3.3.tar.gz \ tpop3d-1.3.4.tar.gz tpop3d-1.3.5.tar.gz tpop3d-1.4.1.tar.gz \ tpop3d-1.4.2.tar.gz tpop3d-1.4.2-auth-flatfile-broken.patch \ tpop3d-1.5.1.tar.gz tpop3d-1.5.2.tar.gz tpop3d-1.5.3.tar.gz \ tpop3d.8.html tpop3d.conf.5.html \ postmark.jpg frisbee.jpg pistons.jpg Makefile # example Makefile SUBDIRS = VERSION = $(shell /bin/cat CURRENT) ARCHIVEFILES = tpop3d.cat tpop3d.conf.cat README README.auth_mysql CREDITS CHANGES HACKING TODO FAQ # # Generic rules: create the pages for this directory and its # subdirectories. # include $(generic_makefile) # # Rules for constructing files in this directory # $(ARCHIVEFILES): tpop3d-$(VERSION).tar.gz CURRENT XFILES="${ARCHIVEFILES:%=tpop3d-$(VERSION)/%}" ;\ tar xvzf tpop3d-$(VERSION).tar.gz $$XFILES ;\ touch $$XFILES ;\ mv $$XFILES . ;\ rmdir tpop3d-$(VERSION) tpop3d.8.html: tpop3d.cat /software/bin/cat2html "tpop3d(8)" < tpop3d.cat > tpop3d.8.html tpop3d.conf.5.html: tpop3d.conf.cat /software/bin/cat2html "tpop3d.conf(5)" < tpop3d.conf.cat > tpop3d.conf.5.html # Horrid. Unfortunately v1.1.2 comes after v1.1, but the sort order doesn't work there. oldversions.html: CHANGES CURRENT oldversions.html.head oldversions.html.tail cat oldversions.html.head > oldversions.html for tarball in `ls tpop3d-[0-9].[0-9].tar.gz ; ls tpop3d-*.*.*.tar.gz | sort -n` ; do \ version=`echo $$tarball | sed 's/tpop3d-//' | sed 's/\.tar\.gz//'` ; \ echo "
" >> oldversions.html ; \
export version ; \
awk 'BEGIN { f=0 } /^[0-9]+\./ { if ($$1 == ENVIRON["version"]) f = 1; else f = 0; } // { if (f && f++ > 2) print $$0 }' CHANGES >> oldversions.html ; \
echo "" >> oldversions.html ; \
done ; \
cat oldversions.html.tail >> oldversions.html