1
0
Fork 0

Fixed library installer windows .bat generator

pull/1273/head
Djordje Kovacevic 2012-10-28 14:07:36 +01:00
parent 2b06503027
commit d92ccd111d
1 changed files with 3 additions and 7 deletions

View File

@ -264,13 +264,9 @@ class LibraryInstaller implements InstallerInterface
} }
} }
return "@echo off\r\n". return "@ECHO OFF\r\n".
"pushd .\r\n". "SET BIN_TARGET=%~dp0\\".escapeshellarg(dirname($binPath)).'\\'.basename($binPath)."\r\n".
"cd %~dp0\r\n". "{$caller} \"%BIN_TARGET%\" %*\r\n";
"cd ".escapeshellarg(dirname($binPath))."\r\n".
"set BIN_TARGET=%CD%\\".basename($binPath)."\r\n".
"popd\r\n".
$caller." \"%BIN_TARGET%\" %*\r\n";
} }
protected function generateUnixyProxyCode($bin, $link) protected function generateUnixyProxyCode($bin, $link)