Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to edit a man page for a command line utility in XCode..

 
   Soft32 Home -> Mac -> Programmer Help RSS
Next:  Help setting up Privoxy & Tiger?  
Author Message
commiebastard

External


Since: Apr 27, 2009
Posts: 7



(Msg. 1) Posted: Tue Jul 14, 2009 12:24 pm
Post subject: How to edit a man page for a command line utility in XCode project?
Archived from groups: comp>sys>mac>programmer>help (more info?)

I am designing a command line utility in Objective C in XCode. It
automatically generates a foo C.1 man page documentation file for my
utility but it is a bit hard to understand. It's a bunch of tags and
information following them. How do I edit this to reflect what my
command line utility is for? Is there a way to see what it would look
like as a man page?

Once it is edited, how do I install it as a man page. Could someone
point me to resources to find this out?
Back to top
Login to vote
Tom Harrington

External


Since: Aug 19, 2003
Posts: 1921



(Msg. 2) Posted: Tue Jul 14, 2009 2:47 pm
Post subject: Re: How to edit a man page for a command line utility in XCode project? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<e5fe1b1e-658b-455c-b5ba-295a32da4011 RemoveThis @a7g2000yqk.googlegroups.com>,
commiebastard <oraclmaster RemoveThis @gmail.com> wrote:

> I am designing a command line utility in Objective C in XCode. It
> automatically generates a foo C.1 man page documentation file for my
> utility but it is a bit hard to understand. It's a bunch of tags and
> information following them. How do I edit this to reflect what my
> command line utility is for? Is there a way to see what it would look
> like as a man page?

"man roff" is probably a good place to start learning about the
formatting. There are dozens of examples in /usr/share/man/.

You can preview the man page from the file with:

groff -Tascii -man $FILE

> Once it is edited, how do I install it as a man page. Could someone
> point me to resources to find this out?

Man pages not included with the system typically go in
/usr/local/share/man/. As long as they're somewhere in the users
$MANPATH they'll work as expected.

--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
Back to top
Login to vote
Tom Harrington

External


Since: Aug 19, 2003
Posts: 1921



(Msg. 3) Posted: Wed Jul 15, 2009 10:10 am
Post subject: Re: How to edit a man page for a command line utility in XCode project? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<80b1a776-3e5e-4e43-8e25-8a8a325f9d11.DeleteThis@c2g2000yqi.googlegroups.com>,
piscesboy <oraclmaster.DeleteThis@gmail.com> wrote:

> Incidentally, this is an unrelated question, but how come I can't
> access the foundation frameworks outside of XCode? For example, in
> XCode, I created a Core Foundation Tool written in Objective C, and it
> includes the Foundation.h frameworks, and compiles fine. When I
> compile the exact same code outside of XCode in emacs, it also
> includes the Foundation Frameworks <Foundation.h> but has no idea
> where the classes are.
>
> I initiate an NSAutoReleasePool, which is defined in the file
> NSAutoReleasePool.h, which is included in the Foundation framework,
> but when I compile outside of XCode, I get a class not found error.

To compile, you have to tell gcc what you're using. You link Foundation
using "-framework Foundation". You don't need to change the #import
line-- <Foundation/Foundation.h> works.

I have no idea how to make Emacs do this.

--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Carbon API's from a command line utility? - Is it possible to call OS X Carbon API's from a Terminal command line utility? If so, can someone point me to some..

command line application - Hello all: I am using MAC OS X.3 and THe latest version of Xcode (1.2 I think). How do I set up a project to make a...

How to run a command line tool? - Hi, A few of the Apple code examples build command line tools rather than proper apps. How do you 'run' these apps?..

Starting Command Line Application - Hi Group! This sounds really silly to me, but I am banging my head on the wall for too long now. I am porting a Plugi...

How to get the command line tool directory (written in C) - How to get the path of the command line tool programaticaly ? (after the command line tool was called from the Terminal...

GUI wrapper for command line application - Hi, I'm trying to write a GUI wrapper for a command line application and am following Apple's Moriarity example. ..
       Soft32 Home -> Mac -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]