git: 0cbb923fa2 - main - phb: fixup WRKDIRPREFIX part.

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/doc/commit/?id=0cbb923fa22504e78bbf4dbfb9baabbf116f7695

commit 0cbb923fa22504e78bbf4dbfb9baabbf116f7695
Author:     Mathieu Arnold <[email protected]>
AuthorDate: 2021-05-25 14:05:28 +0000
Commit:     Mathieu Arnold <[email protected]>
CommitDate: 2021-05-25 14:05:28 +0000

    phb: fixup WRKDIRPREFIX part.
    
    Back in 2013, in a1ca8916e1, stuff was changed, and information was
    lost. Make it so that this bit is a bit more readable.
---
 .../content/en/books/porters-handbook/porting-dads/_index.adoc      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc b/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc
index f3db14b370..8339653fc1 100644
--- a/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc
@@ -46,9 +46,9 @@ Do not write anything to files outside `WRKDIR`. `WRKDIR` is the only place that
 [[porting-wrkdirprefix]]
 == `WRKDIRPREFIX`
 
-Make sure the port honors `WRKDIRPREFIX`. Most ports do not have to worry about this. In particular, when referring to a `WRKDIR` of another port, note that the correct location is [.filename]#WRKDIRPREFIXPORTSDIR/subdir/name/work# not [.filename]#PORTSDIR/subdir/name/work# or [.filename]#.CURDIR/../../subdir/name/work# or some such.
-
-Also, if defining `WRKDIR`, make sure to prepend `${WRKDIRPREFIX}${.CURDIR}` in the front.
+Make sure the port honors `WRKDIRPREFIX`.
+Most ports do not have to worry about this.
+In particular, when referring to a `WRKDIR` of another port, note that the correct location is [.filename]#${WRKDIRPREFIX}${PORTSDIR}/subdir/name/work# not [.filename]#${PORTSDIR}/subdir/name/work# or [.filename]#${.CURDIR}/../../subdir/name/work# or some such.
 
 [[porting-versions]]
 == Differentiating Operating Systems and OS Versions
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.