[libgsf] tests: simplify $topsrc a bit more.



commit ede2a102d3fbaf3b6b74f6275ba56700235c734d
Author: Morten Welinder <terra gnome org>
Date:   Wed Feb 4 18:27:46 2015 -0500

    tests: simplify $topsrc a bit more.

 tests/LibGsfTest.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/LibGsfTest.pm b/tests/LibGsfTest.pm
index e32f1ee..dbd0244 100644
--- a/tests/LibGsfTest.pm
+++ b/tests/LibGsfTest.pm
@@ -25,6 +25,7 @@ $zipinfo = &find_program ("zipinfo");
 
 $topsrc = $0;
 $topsrc =~ s|/[^/]+$|/..|;
+$topsrc =~ s|^\./(.)|$1|;
 $topsrc =~ s|/tests/\.\.$||;
 
 $top_builddir = "..";


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