Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
Blame
Revision Log
source:
vendor
/
python
/
2.5
/
Tools
/
scripts
/
crlf.py
View diff against:
View revision:
Visit:
trunk
branches/BINUTILS_2-11-2_BRANCH
branches/GCC_3-2-2_BETA4_BRANCH
branches/GCC_3-2-2_BRANCH
branches/libc-0.6
tags/GCC-3-2-2_ALPHA2
tags/GCC_3-2-2_BETA1
tags/GCC_3-2-2_BETA2
tags/GCC_3-2-2_BETA3
tags/GCC_3-2-2_BETA4
tags/GCC_3-2-2_BETA4_CSD1
tags/GCC_3-3-3_UNRELEASED
tags/GCC_3-3-4_ALPHA2
tags/GCC_3-3-5_ALPHA3
tags/GCC_3-3-5_BETA5
tags/GCC_3-3-5_RC1
tags/LIBC-0.6.1
tags/LIBC-0.6.3
tags/LIBC-0.6.4
tags/LIBC-0.6.5
tags/LIBC-0.6.6
tags/LIBC_PREFORK
tags/LIBC_PRESIGNALS
Last change
on this file was
3225
, checked in by
bird
,
19 years ago
Python 2.5
File size:
611 bytes
Line
1
#! /usr/bin/env python
2
"Replace CRLF with LF in argument files. Print names of changed files."
3
4
import
sys
,
os
5
6
def
main
():
7
for
filename
in
sys
.
argv
[
1
:]:
8
if
os
.
path
.
isdir
(
filename
):
9
print
filename
,
"Directory!"
10
continue
11
data
=
open
(
filename
,
"rb"
)
.
read
()
12
if
'
\0
'
in
data
: