[xml/sgml] docbook2x debian files checkin

W. Borgert debacle@debian.org
Sat, 13 Mar 2004 14:33:48 +0000


Hi,

I just checked in the debian files for docbook2x in alioth.
The package builds more or less cleanly, but the way to
create info pages is a little bit strange.  This is an
example from the ttcn-el package's debian/rules:

ttcn-el.info: ttcn-el.dbk
# long form:
#        db2x_xsltproc --stylesheet texi ttcn-el.dbk | \
#          db2x_texixml --info --to-stdout | \
        docbook2x-texi --info --to-stdout ttcn-el.dbk | \
          awk 'BEGIN { p=1 } \
            /START-INFO-DIR-ENTRY/ { print "INFO-DIR-SECTION Development\nSTART-
INFO-DIR-ENTRY\n* TTCN-3 mode: (ttcn-el).\tGNU Emacs modes for protocol testing 
languages.";  p=0 } \
            /END-INFO-DIR-ENTRY/ { p=1 } \
            { if (p==1) print }' > ttcn-el.info

As you can see, I have to change the DIR-ENTRY, and have to
add the DIR-SECTION.  Maybe there is a better way to fix it.

Cheers,
-- 
W. Borgert <debacle@debian.org>, http://people.debian.org/~debacle/