Diff of /scripts/svn_fix_properties.pl
Parent Directory
|
Revision Log
|
Patch
| 1 |
#!/usr/bin/perl |
#!/usr/bin/perl |
| 2 |
|
|
| 3 |
die "usage: svn_fix_properties <dir>\nsvn_fix_properties <file>" |
die "usage: svn_fix_properties <dir>\nsvn_fix_properties <file>\n" |
| 4 |
unless (@ARGV == 1); |
unless (@ARGV == 1); |
| 5 |
my $target = $ARGV[0]; |
my $target = $ARGV[0]; |
| 6 |
|
|
| 14 |
"py" => 1, |
"py" => 1, |
| 15 |
); |
); |
| 16 |
|
|
| 17 |
|
|
| 18 |
%gExtText = |
%gExtText = |
| 19 |
( |
( |
| 20 |
"bat" => 1, |
"bat" => 1, |
| 41 |
"py" => 1, |
"py" => 1, |
| 42 |
"r" => 1, |
"r" => 1, |
| 43 |
"rc" => 1, |
"rc" => 1, |
|
"sh" => 1, |
|
| 44 |
"sln" => 1, |
"sln" => 1, |
| 45 |
"strings" => 1, |
"strings" => 1, |
| 46 |
"supp" => 1, |
"supp" => 1, |
| 50 |
"y" => 1, |
"y" => 1, |
| 51 |
); |
); |
| 52 |
|
|
| 53 |
|
%gExtTextLF = |
| 54 |
|
( |
| 55 |
|
"sh" => 1, |
| 56 |
|
); |
| 57 |
|
|
| 58 |
%gExtIgnore = |
%gExtIgnore = |
| 59 |
( |
( |
| 60 |
"" => 1, |
"" => 1, |
| 136 |
&addProperty($file, "svn:eol-style", "native") |
&addProperty($file, "svn:eol-style", "native") |
| 137 |
unless grep($_ eq "svn:eol-style", @props); |
unless grep($_ eq "svn:eol-style", @props); |
| 138 |
$known = 1; |
$known = 1; |
| 139 |
|
} elsif (defined($gExtTextLF{$ext})) { |
| 140 |
|
&addProperty($file, "svn:eol-style", "LF") |
| 141 |
|
unless grep($_ eq "svn:eol-style", @props); |
| 142 |
|
$known = 1; |
| 143 |
} else { |
} else { |
| 144 |
&delProperty($file, "svn:eol-style") |
&delProperty($file, "svn:eol-style") |
| 145 |
if grep($_ eq "svn:eol-style", @props); |
if grep($_ eq "svn:eol-style", @props); |
|
|
Legend:
| Removed from v.57 |
|
| changed lines |
| |
Added in v.67 |
|
|
