--- a/tools/fshu.pm Wed Jul 28 18:30:18 2010 +0100
+++ b/tools/fshu.pm Sat Jul 31 18:44:26 2010 +0100
@@ -94,6 +94,11 @@
}
$path = join('\\', @collapsedPath);
+ if ($path =~ m|^\\epoc32|) {
+ # If it starts with \epoc32, chop the leading backslash and stick on $EPOCROOT
+ $path =~ s|^\\|$ENV{EPOCROOT}|;
+ }
+
return $path;
}
@@ -124,9 +129,9 @@
mkpath($dir) or die "Couldn't make path \"$dir\": $!\n";
}
}
- if ($dir =~ /^\\epoc32/) {
+ if ($dir =~ m|^\\epoc32|) {
# If it starts with \epoc32, chop the leading backslash and stick on $EPOCROOT
- $dir =~ s/^\\/$ENV{EPOCROOT}/;
+ $dir =~ s|^\\|$ENV{EPOCROOT}|;
}
}