Bug#267886: tetex-extra: the package doesn't install cleanly. fmtutil error
Frank Küster <frank@debian.org> wrote:
> + weird_pattern="For use with ngerman"
> + if grep "$weird_pattern" $CUR_LDAT | grep -v ^% >/dev/null; then
> + # this line is lacking the comment sign
> + tempfile=`mktemp`
> + sed -e "s/^\(.*$weird_pattern\)/% \1/" $CUR_LDAT > $tempfile
Ugh, there is a problem here: if I have a line that reads:
ngerman dehyphn.tex hypht1.tex % For use with ngerman
then it will be commented out with this patch. :-/
Therefore, I think you should use a tight regexp. One that matches the
exact buggy line, with optional whitespace on the left or on the right,
but not much more.
If the line is very different, I would say it is not your business any
more...
--
Florent
Reply to: