OpenCores
no use no use 1/1 no use no use
Re: OpenRISC Digest, Vol 14, Issue 8
by Unknown on Jan 28, 2005
Not available!
the configure script error is because the defference of the "new line" between windows and linux. one is "0d0a" while the other is "0d", this is a small tool i found on www.tcl.tk to convert whole directory from one format to another: http://www.tcl.tk/scripting/Dos2unix.txt be careful for it will also convert binary files the source of the file is: #!/usr/local/bin/tclsh8.0 # Dos2Unix # Convert a file to Unix-style line endings # If the file is a directory, then recursively # convert all the files in the directory and below. # # Arguments # f The name of a file or directory. # # Side Effects: # Rewrites the file to have LF line-endings proc Dos2Unix {f} { puts $f if {[file isdirectory $f]} { foreach g [glob [file join $f *]] { Dos2Unix $g } } else { set in [open $f] set out [open $f.new w] fconfigure $out -translation lf puts -nonewline $out [read $in] close $out close $in file rename -force $f.new $f } } # Process each command-line argument foreach f $argv { Dos2Unix $f }
Re: OpenRISC Digest, Vol 14, Issue 8
by Unknown on Jan 28, 2005
Not available!
If you're on a unix style machine, this tool is pre-installed.

dos2unix
unix2dos

Richard

-----Original Message----- From: openrisc-bounces@opencores.org [mailto:openrisc-bounces@opencores.org] On Behalf Of windsoul smth Sent: Friday, January 28, 2005 1:02 PM To: openrisc@opencores.org Subject: [openrisc] Re: OpenRISC Digest, Vol 14, Issue 8 the configure script error is because the defference of the "new line" between windows and linux. one is "0d0a" while the other is "0d", this is a small tool i found on www.tcl.tk to convert whole directory from one format to another: http://www.tcl.tk/scripting/Dos2unix.txt be careful for it will also convert binary files the source of the file is: #!/usr/local/bin/tclsh8.0 # Dos2Unix # Convert a file to Unix-style line endings # If the file is a directory, then recursively # convert all the files in the directory and below. # # Arguments # f The name of a file or directory. # # Side Effects: # Rewrites the file to have LF line-endings proc Dos2Unix {f} { puts $f if {[file isdirectory $f]} { foreach g [glob [file join $f *]] { Dos2Unix $g } } else { set in [open $f] set out [open $f.new w] fconfigure $out -translation lf puts -nonewline $out [read $in] close $out close $in file rename -force $f.new $f } } # Process each command-line argument foreach f $argv { Dos2Unix $f } _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc



no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.