Files
MSYS2-packages/rebase/autorebasebase1st.bat
2014-06-16 09:28:35 +04:00

15 lines
602 B
Batchfile

@echo off
REM Copyright (c) 2014, Ray Donnelly <mingw.android@gmail.com>
set PATH=%~dp0\usr\bin;%PATH%
echo Querying 'base' packages for DLLs ..
bash /usr/bin/pacman-rec-filename-grep base base-dlls-unix.txt ".*\.(dll|so|oct)$"
bash /usr/bin/paths-from-unix-to-windows base-dlls-unix.txt base-dlls.txt %CD:\=/%
echo Rebasing all DLLs, 'base' ones first ..
REM -i is new; it means ignore database and
REM rebase from end of {cygwin1,msys-2.0}.dll
REM it work by avoiding passing -s to rebase.exe
REM which has modifications to support this mode.
dash /usr/bin/rebaseall -T base-dlls.txt -i -p