[Libreoffice-commits] .: autogen.sh

Michael Meeks michael at kemper.freedesktop.org
Wed Feb 29 03:34:49 PST 2012


 autogen.sh |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 39d026a11fc67bc45fc974fe8eab04ef9499fa31
Author: Thomas Collerton <tom.coll91 at gmail.com>
Date:   Wed Feb 29 11:50:02 2012 +0100

    fdo#46565: perl / autogen.sh should backup autogen.lastrun

diff --git a/autogen.sh b/autogen.sh
index d41ccdd..2133d07 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -144,6 +144,10 @@ if (defined $ENV{NOCONFIGURE}) {
     # Save autogen.lastrun only if we did get some arguments on the command-line
     if (@ARGV) {
         if (scalar(@cmdline_args) > 0) {
+            # if there's already an autogen.lastrun, make a backup first
+            if (-e "autogen.lastrun") {
+                system("cp autogen.lastrun autogen.lastrun.bak");
+            }
             # print "writing args to autogen.lastrun\n";
             my $fh;
             open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!";


More information about the Libreoffice-commits mailing list