On 3/24/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
Ralph Shumaker wrote:

> Steve Bibayoff wrote:
>
>> Hello,
>>
>> On 3/23/07, Todd Walton <[EMAIL PROTECTED]> wrote:
>>
>>> On 3/22/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
>>> > Thank you john.  But be that as it may, what would be so hard about
>>> > adding a little note in the echo man page
>>>
>>> Hear hear.
>>
>>
>>
>> This is Open Source. Why don't one of you provide a patch to the man
>> page and feed it upstream.
>>
>>
>> ;-)
>>
>> Steve
>
>
>
> How do I "provide a patch to the man page"?
>
> How do I "feed it upstream"?
>
>
It seems that the second question has already been answered.  But the
first question still stands.


Presumably something  like the following.  Note that man pages are in
compressed troff format.  So first uncompress the file into some
temporary place.

  $ cd /var/tmp
  $ zcat  /usr/share/man/man1/echo.1.gz > echo.1
Save a copy of it.
  $ cp echo.1 echo.1.orig

Use your troff skills to modify the file echo.1 to do what you think
it should do.
You can see how this worked by invoking the "man" program.
  $ man ./echo.1

When finished to satisfaction, use diff(1)  to produce a patch file.
  $ diff --unified echo.1.orig echo.1 > echo.1.patch

This patch file is what you would feed back into the system.

If you want to install the modified file for your own use:
  $ gzip echo.1
  $ sudo cp echo.1.gz /usr/share/man/man1


Acquisition of troff skills is a whole other can of worms.
There is information about writing man pages in
$ man mdoc  and  $ man mdoc.samples
except that you get directed to some non-existent example files.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to