mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
9f4876c586
(This used to be commit 3fc0bd3e54
)
19 lines
271 B
Perl
Executable File
19 lines
271 B
Perl
Executable File
#!/usr/bin/perl -w
|
|
|
|
open( INFILE, "$ARGV[0]" ) || die $@;
|
|
open( OUTFILE, ">$ARGV[0].new" ) || die $@;
|
|
|
|
while ( <INFILE> ) {
|
|
$_ =~ s/[ \t\r]*$//;
|
|
print OUTFILE "$_";
|
|
}
|
|
|
|
close( INFILE );
|
|
close( OUTFILE );
|
|
|
|
rename( "$ARGV[0].new", "$ARGV[0]" ) || die @_;
|
|
|
|
exit( 0 );
|
|
|
|
|