From 0ac7565920a26d36ee401bb5599eb42f4d79dfdb Mon Sep 17 00:00:00 2001 From: pschwan Date: Thu, 18 Jul 2002 23:37:14 +0000 Subject: [PATCH] - added recovery.lyx - changed the 'date' commands to use %x - added DOCVERSION which will hopefully be included in make dist --- lustre/doc/Makefile.am | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lustre/doc/Makefile.am b/lustre/doc/Makefile.am index 31b76cc..18c5597 100644 --- a/lustre/doc/Makefile.am +++ b/lustre/doc/Makefile.am @@ -1,4 +1,4 @@ -# Copyright (C) 2001 Cluster File Systems, Inc. +# Copyright (C) 2001, 2002 Cluster File Systems, Inc. # # This code is issued under the GNU General Public License. # See the file COPYING in this distribution @@ -12,18 +12,21 @@ IMAGES = cache1.eps cache2.eps intermezzocache.eps intermezzofilesys.eps meta.e LYXFILES= master.lyx evolution.lyx llocks.lyx mgmt.lyx uncertain.lyx\ fs.lyx lustre-HOWTO.lyx namespace.lyx\ glossary.lyx lustre-debugging.lyx network.lyx\ - intro.lyx obdspec.lyx + intro.lyx obdspec.lyx recovery.lyx MAINTAINERCLEANFILES = $(IMAGES) $(DOCS) lustre-HOWTO.lyx CLEANFILES = *.lyxT -EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES) +EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES) DOCVERSION 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" +addstamp = sed "s|^Date:.*|Date: `date +%x`|g; s|^Version:.*|Version: $(tag)|g" + +DOCVERSION: + echo $(tag) > DOCVERSION .lyx.pdf: rm -f $ $@ -lustre.lyx: master.lyx $(IMAGES) - (ver="`cat CVS/Tag`" ; if [ ! "$$ver" ]; then ver=HEAD ; fi ;\ +lustre.lyx: master.lyx $(IMAGES) DOCVERSION + (ver="`cat DOCVERSION`" ;\ echo "version for $< is $$ver";\ sed "s/VERSION/version $$ver/" < $< > lustre.lyx.tmp ;\ - thedate=`date` ; sed "s/DATE/$$thedate/" < lustre.lyx.tmp > lustre.lyx ;\ + thedate=`date +%x` ; sed "s/DATE/$$thedate, /" < lustre.lyx.tmp > lustre.lyx ;\ ) syncweb: lustre.pdf -- 1.8.3.1