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
http://lintian.debian.org/tags/command-with-path-in-maintainer-script.html.
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
/usr/bin/mktexlsr
fi
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
mktexlsr
fi
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.
Comments?
Regards, Faheem
Reply to: