repo.or.cz
/
UnsignedByte.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Match up to at most 3 direction components.
[UnsignedByte.git]
/
ub_dos2unix.sh
blob
285893ab47bc5954ab5584edfb6d4c5983ff217e
1
files
=
`find . -name "*.cpp" -or -name "*.h"`
2
3
##
4
## fix workspace
5
##
6
for
file
in
$files
7
do
8
# echo fixing file $file ...
9
## replace any windows crlf with unix lf
10
\r
m
-f
$file
.tmp
11
sed
's_
\r
__g'
$file
>
$file
.tmp
12
# sed 's_sverre@rabbelier.nl_Sverre@Rabbelier.nl_g' $file.tmp > $file.tmp
13
mv
$file
.tmp
$file
14
done
15