Date: Tue, 22 Apr 2008 23:25:04 +0200 From: "Gabor PALI" <pgj@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/122997: [patch] Fix makevar, maketarget Tags in Handbook Chapter 4. (corrected) Message-ID: <480e57b3.2215300a.6654.6407@mx.google.com> Resent-Message-ID: <200804222130.m3MLU2Y6075685@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 122997 >Category: docs >Synopsis: [patch] Fix makevar, maketarget Tags in Handbook Chapter 4. (corrected) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 22 21:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gabor PALI >Release: FreeBSD 6.3-STABLE i386 >Organization: >Environment: System: FreeBSD disznohal 6.3-STABLE FreeBSD 6.3-STABLE #4: Fri Apr 4 23:29:43 CEST 2008 dezzy@disznohal:/usr/obj/usr/src/sys/GENERIC_ i386 >Description: This is the revisited version of doc/122906, without whitespace related changes (I hope at least): I found a small inconsistency in the use of maketarget, makevar tags in SGML source of the Handbook chapter titled ``Packages and Ports''. So, I created a patch to unify their usage and <command>make <maketarget>all consistent</maketarget></command> in the <makevar>PORTS_CHAPTER</makevar> :) >How-To-Repeat: >Fix: Here is the corrected patch: --- ports.patch.diff begins here --- Index: chapter.sgml =================================================================== RCS file: /doc/en_US.ISO8859-1/books/handbook/ports/chapter.sgml,v retrieving revision 1.279 diff -u -r1.279 chapter.sgml --- chapter.sgml 29 Mar 2008 04:00:09 -0000 1.279 +++ chapter.sgml 19 Apr 2008 12:25:59 -0000 @@ -318,7 +318,7 @@ Ports Collection's built-in search mechanism. To use the search feature, you will need to be in the <filename>/usr/ports</filename> directory. Once in that - directory, run <command>make search + directory, run <command>make <maketarget>search</maketarget> name=<replaceable>program-name</replaceable></command> where <replaceable>program-name</replaceable> is the name of the program you want to find. For example, if you were looking @@ -341,7 +341,7 @@ will not be covered here.</para> <para>For more in-depth searching you can also use <command>make - search key=<replaceable>string</replaceable></command> where + <maketarget>search</maketarget> key=<replaceable>string</replaceable></command> where <replaceable>string</replaceable> is some text to search for. This searches port names, comments, descriptions and dependencies and can be used to find ports which relate to a @@ -946,7 +946,7 @@ returned to your prompt. The next step is to install the port. In order to install it, you simply need to tack one word onto the <command>make</command> command, and that word is - <command>install</command>:</para> + <maketarget>install</maketarget>:</para> <screen>&prompt.root; <userinput>make install</userinput> ===> Installing for lsof-4.57 @@ -981,8 +981,8 @@ <note> <para>You can save two extra steps by just running <command>make - install clean</command> instead of <command>make</command>, - <command>make install</command> and <command>make clean</command> + <maketarget>install clean</maketarget></command> instead of <command>make</command>, + <command>make <maketarget>install</maketarget></command> and <command>make <maketarget>clean</maketarget></command> as three separate steps.</para> </note> @@ -1042,7 +1042,7 @@ <note><para>You can build all the ports in a category or as a whole by running <command>make</command> in the top level directory, just like the aforementioned <command>make - <makevar>fetch</makevar></command> method. This is + <maketarget>fetch</maketarget></command> method. This is dangerous, however, as some ports cannot co-exist. In other cases, some ports can install two different files with the same filename.</para></note> @@ -1128,13 +1128,13 @@ It is not uncommon for users to wish to revisit this menu to add, remove, or change these options after a port has been built. There are many ways to do this. One option is to go into the directory - containing the port and type <command>make</command> - <maketarget>config</maketarget>, which will simply present the menu + containing the port and type <command>make + <maketarget>config</maketarget></command>, which will simply present the menu again with the same options selected. Another option is to use - <command>make</command> <maketarget>showconfig</maketarget> which + <command>make <maketarget>showconfig</maketarget></command> which will show you all the configuration options for the port. Yet - another option is to execute <command>make</command> - <maketarget>rmconfig</maketarget> which will remove all selected + another option is to execute <command>make + <maketarget>rmconfig</maketarget></command> which will remove all selected options and allow you to start over. All of these options, and others, are explained in great detail in in the man page for &man.ports.7;.</para> @@ -1200,8 +1200,8 @@ <para>The <application>portupgrade</application> utility is designed to easily upgrade installed ports. It is available from the <filename role="package">ports-mgmt/portupgrade</filename> port. Install it like - any other port, using the <command>make <makevar>install - clean</makevar></command> command:</para> + any other port, using the <command>make <maketarget>install + clean</maketarget></command> command:</para> <screen>&prompt.root; <userinput>cd /usr/ports/ports-mgmt/portupgrade</userinput> &prompt.root; <userinput>make install clean</userinput></screen> @@ -1267,7 +1267,7 @@ confirmation of every step <application>Portmanager</application> will perform. <application>Portmanager</application> can also be used to install new ports on the system. Unlike the usual - <command>make install clean</command> command, it will upgrade all + <command>make <maketarget>install clean</maketarget></command> command, it will upgrade all the dependencies prior to building and installing the selected port.</para> @@ -1386,7 +1386,7 @@ space over time. After building and installing software from the ports, you should always remember to clean up the temporary <filename class="directory">work</filename> directories using the <command>make - <makevar>clean</makevar></command> command. You can sweep the whole + <maketarget>clean</maketarget></command> command. You can sweep the whole Ports Collection with the following command:</para> <screen>&prompt.root; <userinput>portsclean -C</userinput></screen> @@ -1503,7 +1503,7 @@ <listitem> <para>Ask the maintainer of the port for help. Type - <command>make maintainer</command> or read the + <command>make <maketarget>maintainer</maketarget></command> or read the <filename>Makefile</filename> to find the maintainer's email address. Remember to include the name and version of the port (send the <literal>$FreeBSD:</literal> --- ports.patch.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?480e57b3.2215300a.6654.6407>