From cd498f0b88cf5bec829484560f2a4d6e7d8ededb Mon Sep 17 00:00:00 2001 From: gord-fig Date: Thu, 18 Jul 2002 22:41:15 +0000 Subject: [PATCH] Add version information to lustre-HOWTO. --- lustre/doc/Makefile.am | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lustre/doc/Makefile.am b/lustre/doc/Makefile.am index 73e8e96..8be001e 100644 --- a/lustre/doc/Makefile.am +++ b/lustre/doc/Makefile.am @@ -14,21 +14,34 @@ LYXFILES= master.lyx evolution.lyx llocks.lyx mgmt.lyx uncertain.lyx\ glossary.lyx lustre-debugging.lyx network.lyx\ intro.lyx obdspec.lyx -MAINTAINERCLEANFILES = $(IMAGES) $(DOCS) +MAINTAINERCLEANFILES = $(IMAGES) $(DOCS) lustre-HOWTO.lyx +CLEANFILES = *.lyxT EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES) all: $(DOCS) # update date and version in document +tag := $(shell cat $(srcdir)/CVS/Tag 2>/dev/null || echo HEAD) +addstamp = sed "s|^Date:.*|Date: `date +%D`|g; s|^Version:.*|Version: $(tag)|g" + .lyx.pdf: + rm -f $ $ $ $ $@ -- 1.8.3.1