Files
MSYS2-packages/rebase/autorebasebase1st.bat
David Macek 595f4aba7f rebase: Make sure that we execute our dash/bash
The implicit `.` (current working directory) in PATH can cause the script to
call a wrong dash/bash if present alongside the installer.

Fixes https://sourceforge.net/p/msys2/tickets/141/
2017-02-05 12:43:11 +01:00

16 lines
645 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 ..
%~dp0\usr\bin\bash /usr/bin/pacman-rec-filename-grep base base-dlls-unix.txt ".*\.(dll|so|oct)$"
%~dp0\usr\bin\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.
%~dp0\usr\bin\dash /usr/bin/rebaseall -T base-dlls.txt -i -p