Skip to content

Commit 8003a06

Browse files
committed
[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.
1 parent 08ce626 commit 8003a06

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

doc/windows.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ ridk enable ucrt64
2121
2222
pacman -S --needed %MINGW_PACKAGE_PREFIX%-openssl %MINGW_PACKAGE_PREFIX%-libyaml %MINGW_PACKAGE_PREFIX%-libffi
2323
24-
cd c:\
25-
mkdir work
26-
cd work
27-
git clone https://github.com/ruby/ruby
28-
29-
cd c:\work\ruby
30-
sh autogen.sh
31-
sh configure -C --disable-install-doc
24+
mkdir c:\work\ruby
25+
cd /d c:\work\ruby
26+
27+
git clone https://github.com/ruby/ruby src
28+
29+
sh ./src/autogen.sh
30+
31+
mkdir build
32+
cd build
33+
sh ../src/configure -C --disable-install-doc
3234
make
3335
```
3436

@@ -40,14 +42,14 @@ bash
4042

4143
pacman -S --needed $MINGW_PACKAGE_PREFIX-openssl $MINGW_PACKAGE_PREFIX-libyaml $MINGW_PACKAGE_PREFIX-libffi
4244

43-
cd /c/
44-
mkdir work
45-
cd work
46-
git clone https://github.com/ruby/ruby
47-
cd ruby
45+
mkdir /c/work/ruby
46+
cd /c/work/ruby
47+
48+
git clone https://github.com/ruby/ruby src
4849

49-
./autogen.sh
50-
./configure -C --disable-install-doc
50+
./src/autogen.sh
51+
cd build
52+
../src/configure -C --disable-install-doc
5153
make
5254
```
5355

0 commit comments

Comments
 (0)