From 13fcc631534cd69557fb532998ee9853f0dc8e9e Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 24 Jul 2003 20:11:37 +0000 Subject: [PATCH] Added fix for full path name when in cygwin shell. --- configure/tools/convertRelease.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure/tools/convertRelease.pl b/configure/tools/convertRelease.pl index a66072715..07547b061 100755 --- a/configure/tools/convertRelease.pl +++ b/configure/tools/convertRelease.pl @@ -39,9 +39,12 @@ $hostarch = $opt_h if ($opt_h); # Find $top from current path; NB only works under iocBoot/* and configure/* $top = $cwd; -$top =~ s/^\/cygdrive\/(\w)\//$1:\//; +#$top =~ s/^\/cygdrive\/(\w)\//$1:\//; $top =~ s/\/iocBoot.*$//; $top =~ s/\/configure.*$//; +if ($^0 eq "cygwin") { + chomp($top = `cygpath -m $top`); +} # The IOC may need a different path to get to $top if ($opt_t) {