[gnumeric] gnmvalgrind: fix warning.



commit 69e8384d83b1ed68483ddde810fc9c4d7c6159be
Author: Morten Welinder <terra gnome org>
Date:   Wed Apr 9 16:08:29 2014 -0400

    gnmvalgrind: fix warning.

 tools/gnmvalgrind |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tools/gnmvalgrind b/tools/gnmvalgrind
index b74aa55..fb2027f 100755
--- a/tools/gnmvalgrind
+++ b/tools/gnmvalgrind
@@ -74,6 +74,19 @@ sub find_topsrc {
        $dir =~ s{^\./}{};
     }
 
+    $dir = $0;
+    $dir =~ s{/[^/]*$}{};
+    for (1 ... 5) {
+       if (-r "$dir/configure" && -r "$dir/gnumeric.xsd") {
+           return $dir;
+       }
+
+       $dir = "$dir/..";
+       $dir =~ s{^\./}{};
+    }
+
+
+
     die "$0: Cannot find top-level directory.\n";
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]