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