mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
no longer save old Makefile.in to .old
This commit is contained in:
parent
55166914c4
commit
ec0c924e03
12
mkdep.pl
12
mkdep.pl
@ -151,13 +151,13 @@ sub mkdep {
|
||||
}
|
||||
}
|
||||
|
||||
rename($file, $file . ".old");
|
||||
if (!open(MF, ">$file")) {
|
||||
warn("cannot open $file: $!\n");
|
||||
rename($file . ".old", $file);
|
||||
my $newfile = $file . ".new";
|
||||
if (!open(MF, ">$newfile")) {
|
||||
warn("cannot open $newfile: $!\n");
|
||||
} else {
|
||||
print MF $new_makefile || warn("cannot write $file: $!\n");
|
||||
close(MF);
|
||||
print MF $new_makefile || warn("cannot write $newfile: $!\n");
|
||||
close(MF) || warn("cannot close $newfile: $!\n");;
|
||||
rename($newfile, $file);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user