[Libreoffice-commits] .: autogen.sh

2012-03-29 Thread Michael Meeks
 autogen.sh |   11 +++
 1 file changed, 11 insertions(+)

New commits:
commit 02f385b9eafe7172727cf8cdd2d9c86540cdf275
Author: Michael Meeks 
Date:   Thu Mar 29 17:27:08 2012 +0100

deal with symlinks in your PWD breaking gnumake dependencies

diff --git a/autogen.sh b/autogen.sh
index 78a6f67..6f99712 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,6 +3,7 @@
 if 0;
 
 use strict;
+use Cwd ('cwd', 'realpath');
 
 sub clean()
 {
@@ -131,6 +132,16 @@ chomp $system;
 
 sanity_checks ($system) unless($system eq 'Darwin');
 
+# since this looks crazy, if you have a symlink on a path up to and including
+# the current directory, we need our configure to run in the realpath of that
+# such that compiled (realpath'd) dependency filenames match the filenames
+# used in our makefiles - ie. this gets dependencies right via SRC_ROOT
+my $cwd_str = realpath(cwd());
+chdir ($cwd_str);
+# more amazingly, if you don't clobber 'PWD' shells will re-assert their
+# old path from the environment, not cwd.
+$ENV{PWD} = $cwd_str;
+
 my $aclocal_flags = $ENV{ACLOCAL_FLAGS};
 
 if ($aclocal_flags eq "")
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: autogen.sh

2012-03-12 Thread Josh Heidenreich
 autogen.sh |8 
 1 file changed, 8 insertions(+)

New commits:
commit 6635337181c3c3530ceaa2fb49330c2b152107d7
Author: Josh Heidenreich 
Date:   Tue Mar 13 08:57:16 2012 +1030

Fix authgen.sh to not clobber autogen.lastrun when using --help

Fix also works for -h and -?

diff --git a/autogen.sh b/autogen.sh
index 2935619..78a6f67 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -86,6 +86,14 @@ sub invalid_distro($$)
 closedir ($dirh);
 }
 
+# Handle help arguments first, so we don't clobber autogen.lastrun
+for my $arg (@ARGV) {
+if ($arg =~ /^(--help|-h|-\?)$/) {
+system ("./configure --help");
+exit;
+}
+}
+
 my @cmdline_args = ();
 if (!@ARGV) {
 my $lastrun = "autogen.lastrun";
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: autogen.sh

2012-03-05 Thread Tor Lillqvist
 autogen.sh |   10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 0847fd63d773732ff3e441ef868957c55760d69a
Author: Thomas Collerton 
Date:   Fri Mar 2 20:21:59 2012 +0100

Improvement to fdo#46565

diff --git a/autogen.sh b/autogen.sh
index 2133d07..2935619 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -146,7 +146,12 @@ if (defined $ENV{NOCONFIGURE}) {
 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");
+open (my $fh, "autogen.lastrun") || warn "can't open 
autogen.lastrun. \n";
+open (BAK, ">autogen.lastrun.bak") || warn "can't create 
backup file. \n";
+while (<$fh>) {
+print BAK;
+}
+close (BAK) && close ($fh);
 }
 # print "writing args to autogen.lastrun\n";
 my $fh;
@@ -159,7 +164,8 @@ if (defined $ENV{NOCONFIGURE}) {
 }
 elsif ( ! -e "autogen.lastrun")
 {
-system("touch autogen.lastrun");
+open (my $fh, ">autogen.lastrun") || die "can't create 
autogen.lastrun";
+close ($fh);
 }
 print "running ./configure with '" . join ("' '", @args), "'\n";
 system ("./configure", @args) && die "Error running configure";
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: autogen.sh

2012-02-29 Thread Michael Meeks
 autogen.sh |4 
 1 file changed, 4 insertions(+)

New commits:
commit 39d026a11fc67bc45fc974fe8eab04ef9499fa31
Author: Thomas Collerton 
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: 
$!";
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: autogen.sh

2012-01-09 Thread Miklos Vajna
 autogen.sh |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a36addcc85c23e14aa9ac0d0cf32ea229b61
Author: Miklos Vajna 
Date:   Mon Jan 9 22:29:10 2012 +0100

autogen: sync vim modeline with emacs one

diff --git a/autogen.sh b/autogen.sh
index a37953c..f423fe1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -164,4 +164,4 @@ if (defined $ENV{NOCONFIGURE}) {
 # indent-tabs-mode: nil
 # End:
 
-# vim:set shiftwidth=4 softtabstop=4 expandtab: #
+# vim:set ft=perl shiftwidth=4 softtabstop=4 expandtab: #
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits