Skip to content

Commit 7085e6f

Browse files
sam-githubBridgeAR
authored andcommitted
doc: make openssl maintenance position independent
It used to have some `cd` commands that if done literally would invalidate the subsequent commands. Modify them to be more accurate, which also simplifies pasting them directly into the console from the guide while doing an update. PR-URL: #32977 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 6362670 commit 7085e6f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/guides/maintaining-openssl.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This updates all sources in deps/openssl/openssl by:
5757
Use `make` to regenerate all platform dependent files in
5858
`deps/openssl/config/archs/`:
5959
```sh
60-
% cd deps/openssl/config; make
60+
% make -C deps/openssl/config
6161
```
6262

6363
## 3. Check diffs
@@ -66,8 +66,7 @@ Check diffs if updates are right. Even if no updates in openssl
6666
sources, `buildinf.h` files will be updated for they have a timestamp
6767
data in them.
6868
```sh
69-
% cd deps/openssl/config
70-
% git diff
69+
% git diff -- deps/openssl
7170
```
7271

7372
*Note*: On Windows, OpenSSL Configure generates `makefile` that can be
@@ -95,8 +94,7 @@ The commit message can be (with the openssl version set to the relevant value):
9594
9695
After an OpenSSL source update, all the config files need to be
9796
regenerated and committed by:
98-
$ cd deps/openssl/config
99-
$ make
97+
$ make -C deps/openssl/config
10098
$ git add deps/openssl/config/archs
10199
$ git add deps/openssl/openssl/include/crypto/bn_conf.h
102100
$ git add deps/openssl/openssl/include/crypto/dso_conf.h

0 commit comments

Comments
 (0)