[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_installtexfonts in tex-common, new usage



Hi Frank, Florent, Ralf, all!

On Mon, 17 Okt 2005, Florent Rougon wrote:
> > I have decided that I do *not* merge these files but create 
> > 		10fontpack.cfg
> > 		11fontpack.cfg
> > 		12fontpack.cfg
> 
> But your manpage says "10package1.cfg and 10package2.cfg"...

True, this was the first version I wrote and never submitted.

>     grep for the magic comment. If present, do nothing; if absent, add
>     it at the top of the .cfg file, along with the warning & explaining
>     blurb.

This is already implemented and submitted. If the magic comment is
present, then nothing is added, if it is not present, warning + header
is added to the top of the file.

> To my taste, it offers too many possibilities to do the same thing. For

>From /usr/share/doc/debhelper/PROGRAMMING.gz

---------------
If debhelper commands need config files, they should use
debian/package.filename as the name of the config file (replace filename
with whatever your command wants), and debian/filename should also be
checked for config information for the first binary package in
debian/control. Also, debhelper commands should accept the same sort of
information that appears in the config files, on their command lines, if
possible, and apply that information to the first package they act on.
The config file format should be as simple as possible, generally just a
list of files to act on.
---------------

This is the reason why I implemented it that way.


One last remark: On installation time the comments from the autoscripts
files postinst-texfonts and postrm-texfonts are now all stripped
(tex-common/debian/rules:
grep -v '^[ \t]*#' scripts/postrm-texfonts > $(INSTDIR)/usr/share/debhelper/autoscripts
grep -v '^[ \t]*#' scripts/postinst-texfonts > $(INSTDIR)/usr/share/debhelper/autoscripts
) so that they don't clutter the actual postinst files. But I want to
leave the comments in the original files so that we know what we are
doing. Hope this is ok for everyone.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
sip:preining@at43.tuwien.ac.at                             +43 (0) 59966-690018
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
There was a point to this story, but it has temporarily
escaped the chronicler's mind.
                 --- This line perhaps best sums up the whole book.
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy



Reply to: