As Georg-Johann Lay wrote:

> The problem was reported by Joerg. Does it work for you?

Yes, it works fine.

> +     case `echo X|tr X '\101'` in                                    \
> +       A) tr -d '\015' < tmp-avr-mmcu.texi > tmp2-avr-mmcu.texi ;;   \
> +       *) tr -d '\r' < tmp-avr-mmcu.texi > tmp2-avr-mmcu.texi ;;     \
> +     esac

I don't think it has to be that complicated.  Using octal notation has
already been supported by V7 UNIX's tr(1) command, and it is
standardized by the Single Unix Specification (SUSp, formerly POSIX)
as well.  SUSp also standardizes \r, but as this is not mentioned in
the V7 manual, I don't know exactly when this had been introduced, so
I'd go for \015 being the most portable way.  The above decision would
thus always decide for this option anyway.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

Reply via email to