Update the purge-tab-indents.pl script to avoid resetting permissions
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
5bb3efdc74
Коммит
144a9d267b
@ -83,6 +83,10 @@ foreach my $f (@files) {
|
|||||||
|
|
||||||
quiet_print "FILE: $f\n";
|
quiet_print "FILE: $f\n";
|
||||||
|
|
||||||
|
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
|
||||||
|
$atime,$mtime,$ctime,$blksize,$blocks)
|
||||||
|
= stat($f);
|
||||||
|
|
||||||
open(FILE, "$f");
|
open(FILE, "$f");
|
||||||
my @lines_with_tabs = <FILE>;
|
my @lines_with_tabs = <FILE>;
|
||||||
close(FILE);
|
close(FILE);
|
||||||
@ -92,6 +96,7 @@ foreach my $f (@files) {
|
|||||||
print TEMP @expanded_lines;
|
print TEMP @expanded_lines;
|
||||||
close(TEMP);
|
close(TEMP);
|
||||||
system("mv temp.txt $f");
|
system("mv temp.txt $f");
|
||||||
|
chmod($mode, $f);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Returns a list of file names (relative to pwd) which the VCS considers to be modified.
|
# Returns a list of file names (relative to pwd) which the VCS considers to be modified.
|
||||||
@ -157,7 +162,6 @@ sub find_modified_files {
|
|||||||
my $relname = $fullname;
|
my $relname = $fullname;
|
||||||
$relname =~ s!^([^/]*/){$n_strip}!!g;
|
$relname =~ s!^([^/]*/){$n_strip}!!g;
|
||||||
|
|
||||||
print "RELNAME", $relname, "\n";
|
|
||||||
push @files, $relname
|
push @files, $relname
|
||||||
if (-f $relname);
|
if (-f $relname);
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user