|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Why not install Exuberant Ctags which is available in the packages/ports system?
http://www.openbsd.org/4.6_packages/....tgz-long.html |
|
||||
Quote:
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:
|
|
||||
The main reason to use ectags is for the multiple programming language support. For straight C development, just about any tags generator will do fine.
I frequently use different languages, so I frequently use ectags.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
If your filenames might have spaces in them, then I would recommend doing it like this instead:
Code:
find . -print0 -type f -iname '*.[chly]' -or -iname '*.cpp' | xargs -0 ctags Code:
find . -print0 -type f | xargs -0 ctags Last edited by mjcross; 16th April 2013 at 10:05 AM. Reason: wrong tags |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A little confused. Do "snapshots" (vs dump=image) have any correlation, non-unix? | jb_daefo | FreeBSD General | 9 | 21st November 2009 04:41 AM |
Opera Port - conflicting pkgs in "make install" | IronForge | OpenBSD Packages and Ports | 5 | 29th October 2009 05:10 AM |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |
"Thanks" and "Edit Tags". | diw | Feedback and Suggestions | 2 | 29th March 2009 12:06 AM |
Newbie-friendly "printing in OpenBSD" guide wanted | Shagbag | OpenBSD Packages and Ports | 5 | 7th July 2008 09:26 PM |