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

Re: debhelper script for maps, languages, formats



On Mon, 16 Jan 2006, Ralf Stubner wrote:
> > 	dh_installtex	<debhelper options>

> Looks good to me. Nice work.

Thanks.

> Two comments, which actually apply also to the already used
> postinst-texfonts and postrm-texfonts:
> 
> * TeX policy says that update-updmap should be called with option
>   --quiet      

Ok, I will change this!

> * Why do you use 'mktemp -p /tmp'? Shouldn't 'mktemp -t' have the same
>   effect and be easier to understand? I had to look at mktemp(1) first
>   to undestand that TMPDIR, if set, is used even if the -p option is
>   used. 

Hmm I cannot remember (oje, ATM is would be easier for me if I could
write in italian ...) why I did it this way, probably because I didn't
know better?

> I am not sure I understand the purpose of
> 'build_format_if_format_exists' correctly. What's the meaning of the
> different arguments? 

Tricky it is:

Normally it is called with
	build_format_if_format_exists --byfmt etex
then if the etex fmt is present, it is rebuild

As a special case one can call it like
	build_format_if_format_exists --byhyphen latex `kpsewhich language.dat`
in which case it checks wether the format latex exists in the
fmtutil.cnf file, and if yes it calls 
	fmtutil-sys --byhyphen `kpsewhich language.dat`
more or less. See below for a rational.

> One minor thing: Why do you use
>     X=`cat $fmtcnffile | grep "^$2[[:space:]]" || true`
> instead of
>     X=`grep "^$2[[:space:]]" $fmtcnffile || true`

Because I am stupid? No, because it WAS
	fmtutil-sys --listcfg | grep ...
and then I suddently decided that the fmtutil-sys --listcfg is too slow.

But now, that you mention it, there is still the problem that an ini
file is missing but the line activated. Well it shouldn't happen with
the maig comment stuff, but who knows.

I used it to build the latex format in case it is installed. Someone may
install texlive-lang-german *without* installing latex, because he only
wants to have the german pattens for TeX. Who knows.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
MARYTAVY (n.)
A person to whom, under dire injunctions of silence, you tell a secret
which you wish to be fare more widely known.
			--- Douglas Adams, The Meaning of Liff



Reply to: