Don't overwrite autogen.lastrun with identical (perhaps re-ordered) contents
This commit is contained in:
19
autogen.sh
19
autogen.sh
@@ -98,14 +98,17 @@ die "failed to generate configure" if (! -x "configure");
|
|||||||
if (defined $ENV{NOCONFIGURE}) {
|
if (defined $ENV{NOCONFIGURE}) {
|
||||||
print "Skipping configure process.";
|
print "Skipping configure process.";
|
||||||
} else {
|
} else {
|
||||||
if ($#cmdline_args > 0) {
|
# Save autogen.lastrun only if we did get some arguments on the command-line
|
||||||
# print "writing args to autogen.lastrun\n";
|
if (@ARGV) {
|
||||||
my $fh;
|
if ($#cmdline_args > 0) {
|
||||||
open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!";
|
# print "writing args to autogen.lastrun\n";
|
||||||
for my $arg (@cmdline_args) {
|
my $fh;
|
||||||
print $fh "$arg\n";
|
open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!";
|
||||||
}
|
for my $arg (@cmdline_args) {
|
||||||
close ($fh);
|
print $fh "$arg\n";
|
||||||
|
}
|
||||||
|
close ($fh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print "running ./configure with '" . join ("' '", @args), "'\n";
|
print "running ./configure with '" . join ("' '", @args), "'\n";
|
||||||
system ("./configure", @args);
|
system ("./configure", @args);
|
||||||
|
Reference in New Issue
Block a user