Whamcloud - gitweb
Makefile now puts the version and date on front of lustre.pdf
authorbraam <braam>
Thu, 18 Jul 2002 22:49:09 +0000 (22:49 +0000)
committerbraam <braam>
Thu, 18 Jul 2002 22:49:09 +0000 (22:49 +0000)
lustre/doc/Makefile.am

index 8be001e..31b76cc 100644 (file)
@@ -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