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

texdoc: Should it use TEXDOCEXT like plain teTeX 2?



Please CC me, as I'm not subscribed to tetex-maint.


During a discussion on de.comp.text.tex, it was discovered that the
Debian packages of teTeX don't honour TEXDOCEXT like a plain
installation of teTeX does. Is this intentional?

The problem (if it is one) boils down to these three lines in
/usr/bin/texdoc:

#listext=`kpsewhich --expand-brace='$TEXDOCEXT'`
#: ${listext=':.gz'}
listext='.dvi.gz:.pdf.gz:.ps.gz:.txt.gz:.dvi:.pdf:.ps:.txt:.html:""'

I would propose something like

listext=`kpsewhich --expand-brace='$TEXDOCEXT'`
[ "x$listext" = x ] && \
listext='.dvi.gz:.pdf.gz:.ps.gz:.txt.gz:.dvi:.pdf:.ps:.txt:.html:'

Vanilla teTeX2 seems to use (according to a another contributor on the
newsgroup):

listext="`kpsewhich --expand-brace='$TEXDOCEXT' 2>/dev/null`"
test -z "$listext" && listext=":"

Is there a specific reason why the Debian packages do this differently?


(No bug has been filed yet, as I'd like to know the opinion of the list
first.)

-- 
Best Regards,   |   Hi! I'm a .signature virus. Copy me into
 Sebastian      |   your ~/.signature to help me spread!

Attachment: pgpr5TXmny_qM.pgp
Description: PGP signature


Reply to: