util/scripts/unix_to_dos
author William Roberts <williamr@symbian.org>
Mon, 21 Jun 2010 22:38:13 +0100
branchGCC_SURGE
changeset 27 93b982ccede2
parent 0 1918ee327afb
permissions -rw-r--r--
Mark extraneous symbols as ABSENT (bug 3065)

#!/usr/bin/perl

undef $/;

foreach $f ( @ARGV ) {
    if ( open( F, "< $f" ) ) {
	$i = <F>;
	close F;
	$i =~ s/\n/\r\n/g;
	$i =~ s/\r+/\r/g;
	if ( open( F, "> $f" ) ) {
	    print F $i;
	    close F;
	}
    }
}