--- a/tools/fsh-builddocs Wed Jul 28 18:30:18 2010 +0100
+++ b/tools/fsh-builddocs Sat Jul 31 18:44:26 2010 +0100
@@ -1,12 +1,12 @@
#!perl
# fsh-builddocs
-#
+#
# Copyright (c) 2010 Accenture. All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
+#
# Initial Contributors:
# Accenture - Initial contribution
@@ -83,6 +83,15 @@
'i|include=s' => $options{includes}) or DisplayHelp();
DisplayHelp() if ($help);
warn "Invalid arguments\n" and DisplayHelp() unless (@ARGV == 1);
+
+ my $relativeEpocRootPath = fshu::RelativePath($ENV{EPOCROOT}, cwd());
+ $relativeEpocRootPath =~ s/\\/\//g; # '\' -> '/'.
+ foreach my $include (@{$options{includes}}) {
+ if ($include =~ /^epoc32/i) {
+ $include = "${relativeEpocRootPath}$include";
+ }
+ }
+
return shift @ARGV;
}