On Friday 20 June 2003 10:25 am, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Trying to clean up the Texinfo dialog, I find that although we
> Angus> try and eliminate duplicate entries in the list of TeX files,
> Angus> things like
>
> Angus> /usr/share/texmf/tex/generic/xypic/movie.cls
> Angus> /usr/share/texmf/tex//generic/xypic/movie.cls
>
> Angus> slip through.
>
> But why do our scripts generate such nonsense? Why is the same path
> searched twice? 

This is orthogonal to my suggestion to modify NormalizePaths.

Nonetheless, it is trivial to do the same in lib/scripts/TeXFiles.sh:

        for dir in $dirs ; do
-               find $dir -follow -name "*.$type" >>$outfile 2>/dev/null
+               file=`find $dir -follow -name "*.$type" 2>/dev/null`
+               # Clean up path /foo//bar ==> /foo/bar
+               echo $file | sed 's,/\{2,\},/,' >>$outfile
        done

Would you like me to do this too?

> This does not make much sense. What is your TEXINPUTS
> setting, BTW?

$ echo $TEXINPUTS

$

Angus


Reply via email to