Recursive ctags on Solaris

  • Follow


Hi,
  Can anyone suggest how to run ctags recursively on Solaris machine.In 
linux we have the switch "ctags -R * "  to scan recursively but none 
such in solaris.How can I recursively scan all the files with ctags ?

TIA
rohit
0
Reply rohitash 7/21/2004 2:16:42 PM

rohitash panda <prohit99@gmail.com> writes:

> Hi,
>   Can anyone suggest how to run ctags recursively on Solaris machine.In
> linux we have the switch "ctags -R * "  to scan recursively but none such
> in solaris.How can I recursively scan all the files with ctags ?
>

man ctags gives an example:

     Example 2: Building a tags file

     To build a tags file for C sources in a directory  hierarchy
     rooted  at  sourcedir,  first create an empty tags file, and
     then run  find(1)

     example% cd sourcedir  ; rm -f tags ; touch tags
     example% find . \( -name SCCS -prune -name \\
            '*.c' -o -name '*.h' \) -exec ctags -u {} \;

     Notice that spaces must be entered exactly as shown.


HTH, Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
0
Reply Dragan 7/21/2004 2:21:58 PM


If possible, I would suggest downloading and compiling Exuberant Ctags
(http://ctags.sourceforge.net).  That's actually what's used on Linux.  It
is *vastly* superior to the standard UNIX ctags program.  I've compiled it
on many different platforms with no problems at all.

"rohitash panda" <prohit99@gmail.com> wrote in message
news:A3vLc.22$gH5.29@news.oracle.com...
> Hi,
>   Can anyone suggest how to run ctags recursively on Solaris machine.In
> linux we have the switch "ctags -R * "  to scan recursively but none
> such in solaris.How can I recursively scan all the files with ctags ?
>
> TIA
> rohit


0
Reply Craig 7/21/2004 2:34:02 PM

Dragan Cvetkovic wrote:

>rohitash panda <prohit99@gmail.com> writes:
>
>  
>
>>Hi,
>>  Can anyone suggest how to run ctags recursively on Solaris machine.In
>>linux we have the switch "ctags -R * "  to scan recursively but none such
>>in solaris.How can I recursively scan all the files with ctags ?
>>
>>    
>>
>
>man ctags gives an example:
>
>     Example 2: Building a tags file
>
>     To build a tags file for C sources in a directory  hierarchy
>     rooted  at  sourcedir,  first create an empty tags file, and
>     then run  find(1)
>
>     example% cd sourcedir  ; rm -f tags ; touch tags
>     example% find . \( -name SCCS -prune -name \\
>            '*.c' -o -name '*.h' \) -exec ctags -u {} \;
>
>     Notice that spaces must be entered exactly as shown.
>
>
>HTH, Dragan
>
>  
>
Will it create a tags files by following the links(symlinks) also ?

thanks
rohitash
0
Reply rohitash 7/22/2004 7:28:37 AM

3 Replies
986 Views

(page loaded in 0.05 seconds)

Similiar Articles:








7/22/2012 11:55:35 AM


Reply: