added proper version handling
authorJan Pospíšil <honik@ntc.zcu.cz>
Fri, 1 Aug 2008 10:21:23 +0000 (10:21 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Fri, 1 Aug 2008 10:21:23 +0000 (10:21 +0000)
org.glite.lb.doc/Makefile
org.glite.lb.doc/project/version.properties [new file with mode: 0644]
org.glite.lb.doc/src/LBAG.tex
org.glite.lb.doc/src/LBDG.tex
org.glite.lb.doc/src/LBTP.tex
org.glite.lb.doc/src/LBUG.tex
org.glite.lb.doc/src/definitions.tex

index 3efd429..dc7fa21 100644 (file)
@@ -8,6 +8,9 @@ version=0.0.0
 PREFIX=/opt/glite
 
 -include Makefile.inc
+-include ../project/version.properties
+
+version=${module.version}
 
 VPATH = ${top_srcdir}/src
 # example source code is part of the org.glite.lb.client
@@ -24,7 +27,7 @@ INSTALL=install
 
 default all: generate doc
 
-generate: events.tex status.tex
+generate: events.tex status.tex ver.tex
 
 doc: LBUG.pdf LBAG.pdf LBDG.pdf LBTP.pdf
 
@@ -48,6 +51,9 @@ doc: LBUG.pdf LBAG.pdf LBDG.pdf LBTP.pdf
        ${AT3} $< >$@ || rm -f $@
        chmod -w $@ >/dev/null
 
+ver.tex:
+       @echo "\def\version{${version}}" > ver.tex
+
 stage: doc
        $(MAKE) install PREFIX=${stagedir}
 
@@ -66,18 +72,19 @@ install:
        done
 
 clean:
-       rm -rvf LBUG* LBAG* LBDG* LBTP* events.tex status.tex comment*
+       rm -rvf LBUG* LBAG* LBDG* LBTP* events.tex status.tex ver.tex comment*
        rm -rvf log.xml project/ rpmbuild/ RPMS/ tgz/
 
 
 # dependencies:
 
-COMMON:= copyright.tex \
+COMMON:=copyright.tex \
        definitions.tex \
        egee.cls \
        frontmatter.tex \
        lbjp.bib \
-       versions.tex
+       versions.tex \
+       ver.tex
 
 LBUG.pdf: ${COMMON} \
        LBUG.tex \
diff --git a/org.glite.lb.doc/project/version.properties b/org.glite.lb.doc/project/version.properties
new file mode 100644 (file)
index 0000000..53caeb3
--- /dev/null
@@ -0,0 +1,3 @@
+# $Header$
+module.version=1.0.0
+module.age=1
index 90c402d..30bf682 100644 (file)
@@ -6,7 +6,7 @@
 \title{Logging and Bookkeeping}
 \Subtitle{Administrator's Guide}
 \author{CESNET EGEE III JRA1 and SA3 team}
-\DocIdentifier{glite-lb-doc-ag-1.0}
+\DocIdentifier{glite-lb-doc-ag-\version}
 \DeliverableId{}
 \Date{\today}
 \Activity{JRA1: Middleware Engineering}
index 82c9b0c..486ebf5 100644 (file)
@@ -8,7 +8,7 @@
 \title{Logging and Bookkeeping}
 \Subtitle{Developer's Guide}
 \author{CESNET EGEE III JRA1 and SA3 team}
-\DocIdentifier{glite-lb-doc-dg-1.0}
+\DocIdentifier{glite-lb-doc-dg-\version}
 \DeliverableId{}
 \Date{\today}
 \Activity{JRA1: Middleware Engineering}
index 1c9cb6f..7be67ea 100644 (file)
@@ -6,7 +6,7 @@
 \title{Logging and Bookkeeping}
 \Subtitle{Test Plan}
 \author{CESNET EGEE III JRA1 and SA3 team}
-\DocIdentifier{glite-lb-doc-tp-1.0}
+\DocIdentifier{glite-lb-doc-tp-\version}
 \DeliverableId{}
 \Date{\today}
 \Activity{SA3: Integration, Testing and Certification}
index 98f2cfb..077fda5 100644 (file)
@@ -6,7 +6,7 @@
 \title{Logging and Bookkeeping}
 \Subtitle{User's Guide}
 \author{CESNET EGEE III JRA1 and SA3 team}
-\DocIdentifier{glite-lb-doc-ug-1.0}
+\DocIdentifier{glite-lb-doc-ug-\version}
 \DeliverableId{}
 \Date{\today}
 \Activity{JRA1: Middleware Engineering}
index 79cd102..76b5c75 100644 (file)
@@ -31,3 +31,5 @@
 \hyphenation{plug-in}
 
 \newcommand{\email}[1]{\href{mailto:#1}{#1}}
+
+\input{ver.tex}