Re: Debian package for PGF 2.10
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
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,
As Gilles pointed out, this is the syntax used in
/var/lib/dpkg/info/texlive-latex-recommended.postinst for example.