From cc68b67cd0cfd44347884b9483c9faeda8f5cc9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Tue, 13 Jun 2006 11:03:49 +0000 Subject: [PATCH] Automatically generated tex files: 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 | 9 ++++++++- org.glite.lb.common/doc/events.tex.T | 16 ++++++++++++++++ org.glite.lb.common/doc/status.tex.T | 15 +++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 org.glite.lb.common/doc/events.tex.T create mode 100644 org.glite.lb.common/doc/status.tex.T diff --git a/org.glite.lb.common/Makefile b/org.glite.lb.common/Makefile index fdc9ac5..e4e659f 100644 --- a/org.glite.lb.common/Makefile +++ b/org.glite.lb.common/Makefile @@ -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 index 0000000..2cadb43 --- /dev/null +++ b/org.glite.lb.common/doc/events.tex.T @@ -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 index 0000000..e38a031 --- /dev/null +++ b/org.glite.lb.common/doc/status.tex.T @@ -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} -- 1.8.2.3