From 53f3b98e6af591b5d68abeb974b52b784b01fae0 Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 18 Jul 2002 22:49:09 +0000 Subject: [PATCH] Makefile now puts the version and date on front of lustre.pdf --- lustre/doc/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/doc/Makefile.am b/lustre/doc/Makefile.am index 8be001e..31b76cc 100644 --- a/lustre/doc/Makefile.am +++ b/lustre/doc/Makefile.am @@ -47,9 +47,10 @@ addstamp = sed "s|^Date:.*|Date: `date +%D`|g; s|^Version:.*|Version: $(tag)|g" -fig2dev -L eps $< > $@ lustre.lyx: master.lyx $(IMAGES) - (ver=`awk -F/ -v key=$< '$$2 == key {print $$3}' CVS/Entries`;\ + (ver="`cat CVS/Tag`" ; if [ ! "$$ver" ]; then ver=HEAD ; fi ;\ echo "version for $< is $$ver";\ - sed "s/version .*/version $$ver/" < $< > lustre.lyx;\ + sed "s/VERSION/version $$ver/" < $< > lustre.lyx.tmp ;\ + thedate=`date` ; sed "s/DATE/$$thedate/" < lustre.lyx.tmp > lustre.lyx ;\ ) syncweb: lustre.pdf -- 1.8.3.1