Automatically generated tex files:
authorJan Pospíšil <honik@ntc.zcu.cz>
Tue, 13 Jun 2006 11:03:49 +0000 (11:03 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Tue, 13 Jun 2006 11:03:49 +0000 (11:03 +0000)
events.tex.T -> events.tex: list of all events' names togeher with their description
status.tex.T -> status.tex: list of all job' states togeher with their description

org.glite.lb.common/Makefile
org.glite.lb.common/doc/events.tex.T [new file with mode: 0644]
org.glite.lb.common/doc/status.tex.T [new file with mode: 0644]

index fdc9ac5..e4e659f 100644 (file)
@@ -23,7 +23,7 @@ jobiddir=${top_srcdir}/../org.glite.wms-utils.jobid
 
 version=${module.version}
 
-VPATH=${top_srcdir}/src:${top_srcdir}/test
+VPATH=${top_srcdir}/src:${top_srcdir}/test::${top_srcdir}/doc
 AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3
 
 SUFFIXES = .T
@@ -220,6 +220,8 @@ cjobid.c strmd5.c:
        cp -rv ${jobiddir}/src/jobid/*.h glite/wmsutils/jobid/
        cp -rv ${jobiddir}/src/jobid/*.[ch] .
 
+doc: events.tex status.tex
+
 install:
        mkdir -p ${PREFIX}/lib
        mkdir -p ${PREFIX}/share/doc/${package}-${version}
@@ -263,6 +265,11 @@ il_int_test.o il_string_test.o il_test.o il_msg_test.o: %.o: %.cpp
        ${AT3} $< >$@ || rm -f $@
        chmod -w $@ >/dev/null
 
+%.tex: %.tex.T
+       rm -f $@
+       ${AT3} $< >$@ || rm -f $@
+       chmod -w $@ >/dev/null
+
 check_version:
        @perl -ne '/#define GLITE_LB_CLIENT_INTERFACE "(\d+)\.\d+\.\d+"/; \
                $$iface=$$1; \
diff --git a/org.glite.lb.common/doc/events.tex.T b/org.glite.lb.common/doc/events.tex.T
new file mode 100644 (file)
index 0000000..2cadb43
--- /dev/null
@@ -0,0 +1,16 @@
+@@@{
+gen qq{
+%  !! Automatically generated file. Do not edit.
+%  !! Change the corresponding template file $ARGV
+};
+@@@}
+
+\begin{description}
+@@@{
+for my $e (sort { $event->{order}->{$a} <=> $event->{order}->{$b} }
+                $event->getTypes) {
+        my $c = getTypeComment $event $e;
+        gen "\\item\[$e:\] $c\n";
+}
+@@@}
+\end{description}
diff --git a/org.glite.lb.common/doc/status.tex.T b/org.glite.lb.common/doc/status.tex.T
new file mode 100644 (file)
index 0000000..e38a031
--- /dev/null
@@ -0,0 +1,15 @@
+@@@{
+gen qq{
+%  !! Automatically generated file. Do not edit.
+%  !! Change the corresponding template file $ARGV
+};
+@@@}
+
+\begin{description}
+@@@{
+for my $stat ($status->getTypesOrdered) {
+       my $c = getTypeComment $status $stat;
+        gen "\\item\[$stat:\] $c\n";
+        }
+@@@}
+\end{description}