Win32: Accept slashes in --with-opt-dir argument
This commit is contained in:
parent
029174a402
commit
96fac34797
Notes:
git
2024-12-01 09:02:21 +00:00
@ -1,5 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
@setlocal disabledelayedexpansion
|
@setlocal disabledelayedexpansion
|
||||||
|
set PROMPT=$E[94m+$E[m$S
|
||||||
set witharg=
|
set witharg=
|
||||||
|
|
||||||
for %%I in (%0) do if /%%~dpI/ == /%CD%\/ (
|
for %%I in (%0) do if /%%~dpI/ == /%CD%\/ (
|
||||||
@ -23,6 +24,8 @@ echo>%config_make% # CONFIGURE
|
|||||||
:loop
|
:loop
|
||||||
set opt=%1
|
set opt=%1
|
||||||
if "%1" == "" goto :end
|
if "%1" == "" goto :end
|
||||||
|
if "%1" == "--debug-configure" (echo on & shift & goto :loop)
|
||||||
|
if "%1" == "--no-debug-condigure" (echo off & shift & goto :loop)
|
||||||
if "%1" == "--prefix" goto :prefix
|
if "%1" == "--prefix" goto :prefix
|
||||||
if "%1" == "--srcdir" goto :srcdir
|
if "%1" == "--srcdir" goto :srcdir
|
||||||
if "%1" == "srcdir" goto :srcdir
|
if "%1" == "srcdir" goto :srcdir
|
||||||
@ -243,7 +246,8 @@ goto :loop ;
|
|||||||
:opt-dir
|
:opt-dir
|
||||||
set opt=%~2
|
set opt=%~2
|
||||||
for %%I in (%opt:;= %) do (
|
for %%I in (%opt:;= %) do (
|
||||||
pushd %%I && (
|
set d=%%I
|
||||||
|
call pushd %%d:/=\%% && (
|
||||||
call set XINCFLAGS=%%XINCFLAGS%% -I%%CD:\=/%%/include
|
call set XINCFLAGS=%%XINCFLAGS%% -I%%CD:\=/%%/include
|
||||||
call set XLDFLAGS=%%XLDFLAGS%% -libpath:%%CD:\=/%%/lib
|
call set XLDFLAGS=%%XLDFLAGS%% -libpath:%%CD:\=/%%/lib
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user