From d5ad4c4307b07bc5134b3d4e55ec7c971bbd0fd1 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 16 Jun 2005 09:38:45 +0000 Subject: [PATCH] Make borland really work under cygwin, especially when borland install path has spaces. Patch from Malcolm Cifuentes. [SVN r29610] --- src/tools/borland.jam | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tools/borland.jam b/src/tools/borland.jam index 77f7a1af6..6ef921232 100644 --- a/src/tools/borland.jam +++ b/src/tools/borland.jam @@ -159,6 +159,7 @@ if [ os.name ] = CYGWIN { .set-path = "cmd /S /C set \"PATH=" ; .old-path = ";%PATH%\" \"&&\"" ; + # Couldn't get TLIB to stop being confused about pathnames # containing dashes (it seemed to treat them as option separators @@ -166,11 +167,13 @@ if [ os.name ] = CYGWIN # command into a .bat file and execute that. TLIB is also finicky # about pathname style! Forward slashes, too, are treated as # options. + # TLIB actions updated together piecemeal archive { - echo "\"$(.root)tlib\" $(OPTIONS) /u /a /C \"$(<:W)\" +-\"$(>:W)\"" > $(<:D)/tlib.bat - chmod +x $(<:D)/tlib.bat && $(<:D)/tlib.bat && rm $(<:D)/tlib.bat ; - } + chdir $(<:D) + echo +-$(>:BS) > $(<:BS).rsp + $(.set-path)$(.root)$(.old-path) "tlib.exe" $(AROPTIONS) /P256 /C $(<:BS) @$(<:BS).rsp && $(RM) $(<:BS).rsp + } } else if [ os.name ] = NT {