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

Re: Debian package for PGF 2.10

Hi Danai,

On Mon, 28 Feb 2011, Danai SAE-HAN (韓達耐) wrote:

5) command-with-path-in-maintainer-script? This refers to
Should one just use mktexlsr then?

Definitely.  Sometimes you would want to have your own "mktexlsr" and
therefore change the $PATH variable.

It was pointed out to me by Gilles on

http://unix.stackexchange.com/ chat, that this syntax is probably not what
is required.

Currently the script has

  if [ -x /usr/bin/mktexlsr ] ; then

which means, check the specific location /usr/bin/mktexlsr for an executable. If this exists, then execute.

However, if one allows for mktexlsr in non-standard locations, then one should rather have

  if which mktexlsr > /dev/null; then

which checks for any executable mktexlsr in $PATH, and if it exists, executes it.

As Gilles pointed out, this is the syntax used in /var/lib/dpkg/info/texlive-latex-recommended.postinst for example.


                                                   Regards, Faheem

Reply to: