Whamcloud - gitweb
- experiment: attempt to add the cvs version to formatted documentation.
authorrread <rread>
Tue, 2 Jul 2002 01:36:41 +0000 (01:36 +0000)
committerrread <rread>
Tue, 2 Jul 2002 01:36:41 +0000 (01:36 +0000)
Added a rule to create 'lustre.lyx' which is a copy of master.lyx,
modified to include the cvs version.

Normally, "make lustre.pdf" should produce a pdf with the proper version on
the cover page, but on my system the whole Date tag is not showing up. Not sure why.

lustre/doc/Makefile.am

index 9f88aec..20355b4 100644 (file)
@@ -20,6 +20,7 @@ EXTRA_DIST = $(DOCS) $(IMAGES) $(LYXFILES)
 
 all: $(DOCS)
 
+# update date and version in document
 .lyx.pdf:
        @$(LYX2PDF) $< || printf "\n*** Warning: not creating PDF docs; install lyx to rectify this\n"
 
@@ -32,6 +33,12 @@ all: $(DOCS)
 .fig.eps:
        -fig2dev -L eps $< > $@
 
+lustre.lyx: master.lyx $(IMAGES)
+       (ver=`awk -F/ -v key=$<  '$$2 == key {print $$3}' CVS/Entries`;\
+       echo "version for $< is $$ver";\
+       sed "s/version .*/version $$ver/" < $< > lustre.lyx;\
+       )
+
 master.pdf: master.lyx $(IMAGES)
 
 syncweb: master.pdf