From 8003a06854fed5e46d20ed310488294b96537da8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 10 Apr 2025 17:39:56 +0900 Subject: [PATCH] [DOC] Use slashes in mingw confiure examples To show that mingw `sh` expects forward slashes as path separators, not backslashes, configure in another directory than the source directory. --- doc/windows.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/doc/windows.md b/doc/windows.md index 2fb8ed6630..34a4a15f3d 100644 --- a/doc/windows.md +++ b/doc/windows.md @@ -21,14 +21,16 @@ ridk enable ucrt64 pacman -S --needed %MINGW_PACKAGE_PREFIX%-openssl %MINGW_PACKAGE_PREFIX%-libyaml %MINGW_PACKAGE_PREFIX%-libffi -cd c:\ -mkdir work -cd work -git clone https://github.com/ruby/ruby +mkdir c:\work\ruby +cd /d c:\work\ruby -cd c:\work\ruby -sh autogen.sh -sh configure -C --disable-install-doc +git clone https://github.com/ruby/ruby src + +sh ./src/autogen.sh + +mkdir build +cd build +sh ../src/configure -C --disable-install-doc make ``` @@ -40,14 +42,14 @@ bash pacman -S --needed $MINGW_PACKAGE_PREFIX-openssl $MINGW_PACKAGE_PREFIX-libyaml $MINGW_PACKAGE_PREFIX-libffi -cd /c/ -mkdir work -cd work -git clone https://github.com/ruby/ruby -cd ruby +mkdir /c/work/ruby +cd /c/work/ruby -./autogen.sh -./configure -C --disable-install-doc +git clone https://github.com/ruby/ruby src + +./src/autogen.sh +cd build +../src/configure -C --disable-install-doc make ```