On 06.04.15 19:26, Stephen Leake wrote:
Simon Wright <[email protected]> writes:
I see the latest MTN checkin includes this patch - but also includes
changes for OpenToken 6, which hasn’t made it to the MTN repo yet (as
far as I can tell). Is that in the plans?
Yes, I'm working on the release now (but slowly :)
OpenToken uses the dos2unix command, which turns out to be somewhat
difficult to translate on non-Linux Unix systems without installing
another Unix on top of the current Unix. Does OpenToken use dos2unix
for anything other than line endings and possibly ^Z?
I seem to get good result so far, using this little replacement
on a Mac; it should be POSIX compliant:
#! /bin/sh
# poor man's replacement of dos2unix: just removes \r and EOF (^Z)
# FILES
tmpfile=$(mktemp -t "dos2unix") || exit 1
# For each file in *, write a temporary file that does not have the
# DOS characters; then, overwrite the original with that:
while test $# -gt 0
do
cat "$1" | tr -d '\r\032' > $tmpfile &&
cat $tmpfile > "$1"
shift
done
rm $tmpfile
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org