repo.or.cz
/
opsoft_test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
current version
[opsoft_test.git]
/
silentbob
/
scripts
/
fixdoxy.pl
blob
235684e6c67bcbe52fe98f4b66d51d19e00460a0
1
#!/usr/bin/perl
2
3
my
$fileName
;
4
foreach
$fileName
(
@ARGV
) {
5
fixFile
(
$fileName
);
6
}
7
8
sub
fixFile
($) {
9
my
$m_fileName
=
shift
;
10
open
(
FILE
,
"<
$m_fileName
"
)
or die
"Не могу открыть файл
$m_fileName
"
;
11
@allData
= <
FILE
>;
12
close
FILE
;
13
$data
=
join
(
""
,
@allData
);
14
$data
=~
s/charset=iso-8859-1/charset=utf8/g
;
15
open
(
FILE
,
">
$m_fileName
"
);
16
print
FILE
$data
;
17
close
FILE
;
18
}
19