projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95be707
)
Made syncqt collapse redundant ".." sections in paths.
author
axis
<qt-info@nokia.com>
Mon, 3 Jan 2011 18:19:39 +0000
(19:19 +0100)
committer
axis
<qt-info@nokia.com>
Wed, 27 Apr 2011 10:05:50 +0000
(12:05 +0200)
bin/syncqt
patch
|
blob
|
history
diff --git
a/bin/syncqt
b/bin/syncqt
index
72b9be0
..
6af59c4
100755
(executable)
--- a/
bin/syncqt
+++ b/
bin/syncqt
@@
-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);