Created
January 19, 2012 17:29
-
-
Save gerdr/1641348 to your computer and use it in GitHub Desktop.
Batch file to rebase Parrot DLLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
if "%CYGWIN_ROOT%" == "" set CYGWIN_ROOT=C:\cygwin | |
if not exist "%CYGWIN_ROOT%"\ ( | |
echo directory %CYGWIN_ROOT% does not exist | |
echo please set the variable CYGWIN_ROOT | |
exit /B 1 | |
) | |
for %%F in (find.exe dash.exe rebaseall) do ( | |
if not exist "%CYGWIN_ROOT%\bin\%%F" ( | |
echo %CYGWIN_ROOT%\bin\%%F not found | |
echo make sure you have the packages findutils, dash and rebase installed | |
exit /B 1 | |
) | |
) | |
"%CYGWIN_ROOT%\bin\find" -iname '*.dll' > dll-list.txt | |
if not %ERRORLEVEL% == 0 ( | |
echo failed to create DLL list | |
del dll-list.txt | |
exit /B 1 | |
) | |
"%CYGWIN_ROOT%\bin\dash" /bin/rebaseall -T dll-list.txt | |
if not %ERRORLEVEL% == 0 ( | |
echo failed to rebase DLLs | |
del dll-list.txt | |
exit /B 1 | |
) | |
del dll-list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment