building the latest Mpeg plugin on Linux.......

David T. Lewis lewis at mail.msen.com
Sun Dec 16 13:51:27 UTC 2001


On Sat, Dec 15, 2001 at 12:12:10AM +0100, Andreas Raab wrote:
> John,
> 
> This is probably a line-end convention issue. If you have the "standard"
> toolchain you should have a utility called "sqcat" which can be used to
> convert (Mac-style) CRs into (Unixy-Style) LFs. If you don't you can convert
> the file from Squeak by:
> 
> 	contents := (CrLfFileStream readOnlyFileNamed: 'changesForSqueak.h')
> contents; close.
> 	(CrLfFileStream newFileNamed: 'changesForSqueak.h') nextPutAll: contents;
> close.
> 
> Then try again. Note that you may have to do this for more files.

Attached is a hack of sqless for converting the files in place. If you
have a whole bunch of source files that may need convertion, you can:

$ find my/squeak/source/tree -name "*.[ch]" -exec sqless {} \;

Dave
 
-------------- next part --------------
#!/bin/sh
# Sat Aug 11 09:46:14 EDT 2001 dtl
# convert a file in place from Squeak format to Unix line termination

EXE=`basename $0`
if test $# -ne 1
then
  echo usage: $EXE filename
  exit 1
fi
TEMP=/tmp/$EXE.$$
cat $1 | tr '\015' '\012' > $TEMP
cat $TEMP > $1
rm $TEMP



More information about the Squeak-dev mailing list