git: e457b6efe3 - main - books/porters-handbook: Fix numerous mismatches in section 11.1

Ka Ho Ng <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by khng (src committer):

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

commit e457b6efe37c739fdad985344a64a3ac0c4dfe6b
Author:     Ka Ho Ng <[email protected]>
AuthorDate: 2021-04-22 07:04:59 +0000
Commit:     Ka Ho Ng <[email protected]>
CommitDate: 2021-04-22 08:20:59 +0000

    books/porters-handbook: Fix numerous mismatches in section 11.1
    
    In step 1 users were told to do "cd ~/my_ports_wrkdir" but after clone
    the repository users were instead told to do "cd ~/my_wrkdir". Also, the
    git command in step 2 is not followed by either of them. The mirror
    sites table is outdated as well.
    
    This fix changes the whole shell code block to use the directory name
    my_wrkdir. Also, the repository URL table xref replaces the old SVN
    mirror sites xref.
    
    Reported by:    Pau Amma <[email protected]>
    Approved by:    0mp
    Differential Revision:  https://reviews.freebsd.org/D29916
---
 .../content/en/books/porters-handbook/upgrading/_index.adoc          | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/documentation/content/en/books/porters-handbook/upgrading/_index.adoc b/documentation/content/en/books/porters-handbook/upgrading/_index.adoc
index 1b383ebfa0..69b161d486 100644
--- a/documentation/content/en/books/porters-handbook/upgrading/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/upgrading/_index.adoc
@@ -87,14 +87,13 @@ When possible, please submit a man:git[1] diff. They are easier to handle than d
 
 [source,shell]
 ....
-% cd ~/my_ports_wrkdir <.>
-% git clone https://git.FreeBSD.org/ports.git <.>
+% git clone https://git.FreeBSD.org/ports.git ~/my_wrkdir <.> <.>
 % cd ~/my_wrkdir/dns/pdnsd
 ....
 
 <.> This can be anywhere, of course. Building ports is not limited to within [.filename]#/usr/ports/#.
 
-<.> https://git.FreeBSD.org/[git.FreeBSD.org] is the FreeBSD public Git server. See link:{handbook}#svn-mirrors[Subversion mirror sites] for more information.
+<.> https://git.FreeBSD.org/[git.FreeBSD.org] is the FreeBSD public Git server. See link:{handbook}mirrors/#git-url-table[FreeBSD Git Repository URL Table] for more information.
 
 While in the port directory, make any changes that are needed. If adding, moving, or removing a file, use `git` to track these changes:
 
_______________________________________________
[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.