diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-29 19:39:18 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-29 19:41:28 +0300 |
commit | 1ec7b6a4965dba5c83709d0275a43697c15668ac (patch) | |
tree | d7a4db0ced4d51a3b99106338fc23a2ac32ff80d /autogen.sh | |
parent | pixman is built as static lib on Mac (diff) | |
download | core-1ec7b6a4965dba5c83709d0275a43697c15668ac.tar.gz core-1ec7b6a4965dba5c83709d0275a43697c15668ac.zip |
Don't overwrite autogen.lastrun with identical (perhaps re-ordered) contents
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh index 444d970e51d9..6b49365bd437 100755 --- a/autogen.sh +++ b/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); |