aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/win32/cygwin_tools/vc/rc.sh
diff options
context:
space:
mode:
authorAndrew Thompson <[email protected]>2009-12-15 13:12:09 -0500
committerAndrew Thompson <[email protected]>2009-12-15 13:12:09 -0500
commit98751d52659b0f6d6193326cb1debea7a5628a74 (patch)
tree0331e25706c1cf91bd804c194595c0114f4bff7c /erts/etc/win32/cygwin_tools/vc/rc.sh
parentcb62972ca24198cc13e030adbd0b8a757bdb293c (diff)
downloadotp-98751d52659b0f6d6193326cb1debea7a5628a74.tar.gz
otp-98751d52659b0f6d6193326cb1debea7a5628a74.tar.bz2
otp-98751d52659b0f6d6193326cb1debea7a5628a74.zip
Allow mc.sh and rc.sh to work when path to mc/rc.exe has spaces
The eval call in these scripts was failing for me because the path to them on my windows machine contained spaces. I also fixed some copy/paste-os from when (evidently) the mc.sh script was created by copying the rc.sh script and modifying it.
Diffstat (limited to 'erts/etc/win32/cygwin_tools/vc/rc.sh')
-rwxr-xr-xerts/etc/win32/cygwin_tools/vc/rc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/etc/win32/cygwin_tools/vc/rc.sh b/erts/etc/win32/cygwin_tools/vc/rc.sh
index 748de48890..6a6921c49e 100755
--- a/erts/etc/win32/cygwin_tools/vc/rc.sh
+++ b/erts/etc/win32/cygwin_tools/vc/rc.sh
@@ -30,8 +30,8 @@ save_ifs=$IFS
IFS=:
for p in $PATH; do
if [ -f $p/rc.exe ]; then
- if [ -n "`$p/rc.exe -? 2>&1 | grep -i "resource compiler"`" ]; then
- RCC=$p/rc.exe
+ if [ -n "`$p/rc.exe -? 2>&1 | grep -i "resource compiler"`" ]; then
+ RCC=`echo "$p/rc.exe" | sed 's/ /\\\\ /g'`
fi
fi
done