1
0
Fork 0

Merge remote-tracking branch 'djordje/windows-bat-fix'

pull/915/merge
Jordi Boggiano 2012-11-01 16:59:24 +01:00
commit f8ce52dc7a
1 changed files with 3 additions and 7 deletions

View File

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