Made syncqt collapse redundant ".." sections in paths.
authoraxis <qt-info@nokia.com>
Mon, 3 Jan 2011 18:19:39 +0000 (19:19 +0100)
committeraxis <qt-info@nokia.com>
Wed, 27 Apr 2011 10:05:50 +0000 (12:05 +0200)
bin/syncqt

index 72b9be0..6af59c4 100755 (executable)
@@ -325,6 +325,8 @@ sub fixPaths {
     return basename($file) if($file_dir eq $dir);
 
     #guts
+    while ($file_dir =~ s,/[^/]+/\.\./,/,) {}
+    while ($dir =~ s,/[^/]+/\.\./,/,) {}
     my $match_dir = 0;
     for(my $i = 1; $i < length($file_dir); $i++) {
         my $slash = index($file_dir, "/", $i);