View Single Post
  #4   (View Single Post)  
Old 18th May 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Default

Quote:
Originally Posted by ephemera View Post
Example: for 'C' source & header files:

find . -name \*.c -o -name \*.h | xargs ctags
Thanks a lot.

I added it to a Makefile to call make run it.

Code:
$ cat Makefile                                                                 
################################################################################
#
# Generate tags for the project.
#
################################################################################

all:
	find . -name \*.c -o -name \*.h | xargs ctags

clean:
	rm tags

################################################################################
Quote:
Originally Posted by ocicat View Post
Why not install Exuberant Ctags which is available in the packages/ports system?

http://www.openbsd.org/4.6_packages/....tgz-long.html
I know I can install "Exuberant Ctags" but I think if there are similar program in the based system why install another one.
Reply With Quote