Home > Archive > Unix Programming > July 2004 > Recursive ctags on Solaris
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Recursive ctags on Solaris
|
|
| rohitash panda 2004-07-21, 3:58 pm |
| 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
| |
| Dragan Cvetkovic 2004-07-21, 3:58 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 !!!
| |
| Craig Barkhouse 2004-07-21, 3: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
| |
| rohitash panda 2004-07-22, 3:57 am |
| Dragan Cvetkovic wrote:
>rohitash panda <prohit99@gmail.com> writes:
>
>
>
>
>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
|
|
|
|
|