2018-10-13 07:19:22 -04:00
|
|
|
:: Usage:
|
2020-05-23 10:53:59 -04:00
|
|
|
:: call depends.bat file
|
2018-10-13 07:19:22 -04:00
|
|
|
|
2020-05-23 10:53:59 -04:00
|
|
|
if "%1"=="" (
|
|
|
|
echo Usage: %~nx0 File
|
2018-10-13 07:19:22 -04:00
|
|
|
exit /B 1
|
|
|
|
)
|
|
|
|
|
|
|
|
setlocal
|
2020-05-23 10:53:59 -04:00
|
|
|
pushd %~dp1
|
2018-10-13 07:19:22 -04:00
|
|
|
|
2020-05-23 10:53:59 -04:00
|
|
|
%EnvMSYS2Cmd% "ntldd --recursive $0 | cut -f1 -d"=" | awk '{$1=$1};1'" %~nx1 > %~sdp0depends.tmp
|
2018-10-13 07:19:22 -04:00
|
|
|
|
2020-05-23 10:53:59 -04:00
|
|
|
for /F %%A in (%~sdp0depends.tmp) do (
|
|
|
|
echo %%~A
|
2018-10-13 07:19:22 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if exist "%~dp0depends.tmp" del /Q "%~dp0depends.tmp"
|
|
|
|
|
2020-05-23 10:53:59 -04:00
|
|
|
popd
|
2018-10-13 07:19:22 -04:00
|
|
|
endlocal
|
2018-06-14 08:22:23 -04:00
|
|
|
exit /B 0
|