Those who are trying to build Xerces-J, Xalan, Cocoon etc on a
solaris platform, here is a simplistic perl script that will fix the problem.
Now dont tell me that you are using solaris and that you don't have
perl on your system. There may be so many other ways of doing
this, but this is what I use and it works.
Regards
Joseph Rajkumar
================================================
#!/usr/local/bin/perl
##
## This program recursively removes the control characters
## in any text file that is of size > 0, readable and
## writable
##
@files = `find . -name \"*\" -print`;
foreach $file ( @files ) {
chop ( $file );
## Must be a text file, of size > 0,
readable & writable
if ( -T $file && -s $file &&
-r $file && -w $file ) {
print "Scrubbing $file\n";
## read in the
entire file
undef $/;
open ( FOO,
$file );
$data = "">;
close FOO;
## Remove the
\r\n and replace with \n
$data =~ s/\r\n/\n/g;
## Now write
it out to the same file
open ( FOO,
">$file" );
print FOO $data;
close FOO;
}
}
Rajiv Mordani wrote:Hi All,
I just checked out the latest version of xerces and tried to build
xerces-J. However when I get into the xml-xerces/java directory and try to
run make it gives me the following:"Fatal error in reader: ./src/Makefile.incl, line 3: Unexpected end of line
seen."Any ideas.. I have tried to remove all the lines there and just set
CLPATHSEP to : (as I am building on Solaris) but it still gives me the same
error.- Rajiv
--
UNIX _is_ user friendly,
he's just very picky about who his friends are.
