ctags.rb 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. data/Gemfile +2 -0
  2. data/Rakefile +23 -0
  3. data/ctags.rb.gemspec +23 -0
  4. data/ext/.gitignore +3 -0
  5. data/ext/extconf.rb +15 -0
  6. data/ext/vendor/exuberant-ctags/.gitignore +6 -0
  7. data/ext/vendor/exuberant-ctags/.indent.pro +31 -0
  8. data/ext/vendor/exuberant-ctags/COPYING +340 -0
  9. data/ext/vendor/exuberant-ctags/EXTENDING.html +386 -0
  10. data/ext/vendor/exuberant-ctags/FAQ +371 -0
  11. data/ext/vendor/exuberant-ctags/INSTALL +215 -0
  12. data/ext/vendor/exuberant-ctags/INSTALL.oth +73 -0
  13. data/ext/vendor/exuberant-ctags/MAINTAINERS +88 -0
  14. data/ext/vendor/exuberant-ctags/Makefile.in +222 -0
  15. data/ext/vendor/exuberant-ctags/NEWS +871 -0
  16. data/ext/vendor/exuberant-ctags/README +73 -0
  17. data/ext/vendor/exuberant-ctags/ant.c +42 -0
  18. data/ext/vendor/exuberant-ctags/argproc.c +505 -0
  19. data/ext/vendor/exuberant-ctags/args.c +274 -0
  20. data/ext/vendor/exuberant-ctags/args.h +63 -0
  21. data/ext/vendor/exuberant-ctags/asm.c +387 -0
  22. data/ext/vendor/exuberant-ctags/asp.c +328 -0
  23. data/ext/vendor/exuberant-ctags/awk.c +81 -0
  24. data/ext/vendor/exuberant-ctags/basic.c +203 -0
  25. data/ext/vendor/exuberant-ctags/beta.c +321 -0
  26. data/ext/vendor/exuberant-ctags/c.c +2932 -0
  27. data/ext/vendor/exuberant-ctags/cobol.c +50 -0
  28. data/ext/vendor/exuberant-ctags/config.h.in +277 -0
  29. data/ext/vendor/exuberant-ctags/configure +7704 -0
  30. data/ext/vendor/exuberant-ctags/configure.ac +532 -0
  31. data/ext/vendor/exuberant-ctags/ctags.1 +1186 -0
  32. data/ext/vendor/exuberant-ctags/ctags.h +28 -0
  33. data/ext/vendor/exuberant-ctags/ctags.html +2087 -0
  34. data/ext/vendor/exuberant-ctags/ctags.spec +40 -0
  35. data/ext/vendor/exuberant-ctags/debug.c +113 -0
  36. data/ext/vendor/exuberant-ctags/debug.h +70 -0
  37. data/ext/vendor/exuberant-ctags/descrip.mms +68 -0
  38. data/ext/vendor/exuberant-ctags/dosbatch.c +42 -0
  39. data/ext/vendor/exuberant-ctags/e_amiga.h +24 -0
  40. data/ext/vendor/exuberant-ctags/e_djgpp.h +47 -0
  41. data/ext/vendor/exuberant-ctags/e_mac.h +143 -0
  42. data/ext/vendor/exuberant-ctags/e_msoft.h +76 -0
  43. data/ext/vendor/exuberant-ctags/e_os2.h +37 -0
  44. data/ext/vendor/exuberant-ctags/e_qdos.h +34 -0
  45. data/ext/vendor/exuberant-ctags/e_riscos.h +58 -0
  46. data/ext/vendor/exuberant-ctags/e_vms.h +31 -0
  47. data/ext/vendor/exuberant-ctags/eiffel.c +1352 -0
  48. data/ext/vendor/exuberant-ctags/entry.c +847 -0
  49. data/ext/vendor/exuberant-ctags/entry.h +103 -0
  50. data/ext/vendor/exuberant-ctags/erlang.c +189 -0
  51. data/ext/vendor/exuberant-ctags/flex.c +2243 -0
  52. data/ext/vendor/exuberant-ctags/fortran.c +2197 -0
  53. data/ext/vendor/exuberant-ctags/general.h +127 -0
  54. data/ext/vendor/exuberant-ctags/get.c +669 -0
  55. data/ext/vendor/exuberant-ctags/get.h +50 -0
  56. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/all-wcprops +47 -0
  57. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/entries +112 -0
  58. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/README.txt.svn-base +5 -0
  59. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regcomp.c.svn-base +3818 -0
  60. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.c.svn-base +74 -0
  61. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.h.svn-base +575 -0
  62. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.c.svn-base +1713 -0
  63. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.h.svn-base +773 -0
  64. data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regexec.c.svn-base +4338 -0
  65. data/ext/vendor/exuberant-ctags/gnu_regex/README.txt +5 -0
  66. data/ext/vendor/exuberant-ctags/gnu_regex/regcomp.c +3818 -0
  67. data/ext/vendor/exuberant-ctags/gnu_regex/regex.c +74 -0
  68. data/ext/vendor/exuberant-ctags/gnu_regex/regex.h +575 -0
  69. data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.c +1713 -0
  70. data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.h +773 -0
  71. data/ext/vendor/exuberant-ctags/gnu_regex/regexec.c +4338 -0
  72. data/ext/vendor/exuberant-ctags/html.c +49 -0
  73. data/ext/vendor/exuberant-ctags/jscript.c +1572 -0
  74. data/ext/vendor/exuberant-ctags/keyword.c +258 -0
  75. data/ext/vendor/exuberant-ctags/keyword.h +34 -0
  76. data/ext/vendor/exuberant-ctags/lisp.c +139 -0
  77. data/ext/vendor/exuberant-ctags/lregex.c +704 -0
  78. data/ext/vendor/exuberant-ctags/lua.c +133 -0
  79. data/ext/vendor/exuberant-ctags/mac.c +273 -0
  80. data/ext/vendor/exuberant-ctags/magic.diff +21 -0
  81. data/ext/vendor/exuberant-ctags/main.c +584 -0
  82. data/ext/vendor/exuberant-ctags/main.h +32 -0
  83. data/ext/vendor/exuberant-ctags/maintainer.mak +476 -0
  84. data/ext/vendor/exuberant-ctags/make.c +217 -0
  85. data/ext/vendor/exuberant-ctags/matlab.c +44 -0
  86. data/ext/vendor/exuberant-ctags/mk_bc3.mak +46 -0
  87. data/ext/vendor/exuberant-ctags/mk_bc5.mak +49 -0
  88. data/ext/vendor/exuberant-ctags/mk_djg.mak +18 -0
  89. data/ext/vendor/exuberant-ctags/mk_manx.mak +65 -0
  90. data/ext/vendor/exuberant-ctags/mk_mingw.mak +31 -0
  91. data/ext/vendor/exuberant-ctags/mk_mpw.mak +130 -0
  92. data/ext/vendor/exuberant-ctags/mk_mvc.mak +40 -0
  93. data/ext/vendor/exuberant-ctags/mk_os2.mak +104 -0
  94. data/ext/vendor/exuberant-ctags/mk_qdos.mak +100 -0
  95. data/ext/vendor/exuberant-ctags/mk_sas.mak +63 -0
  96. data/ext/vendor/exuberant-ctags/mkinstalldirs +40 -0
  97. data/ext/vendor/exuberant-ctags/ocaml.c +1842 -0
  98. data/ext/vendor/exuberant-ctags/options.c +1842 -0
  99. data/ext/vendor/exuberant-ctags/options.h +155 -0
  100. data/ext/vendor/exuberant-ctags/parse.c +677 -0
  101. data/ext/vendor/exuberant-ctags/parse.h +129 -0
  102. data/ext/vendor/exuberant-ctags/parsers.h +63 -0
  103. data/ext/vendor/exuberant-ctags/pascal.c +267 -0
  104. data/ext/vendor/exuberant-ctags/perl.c +382 -0
  105. data/ext/vendor/exuberant-ctags/php.c +237 -0
  106. data/ext/vendor/exuberant-ctags/python.c +771 -0
  107. data/ext/vendor/exuberant-ctags/qdos.c +106 -0
  108. data/ext/vendor/exuberant-ctags/read.c +569 -0
  109. data/ext/vendor/exuberant-ctags/read.h +116 -0
  110. data/ext/vendor/exuberant-ctags/readtags.c +959 -0
  111. data/ext/vendor/exuberant-ctags/readtags.h +252 -0
  112. data/ext/vendor/exuberant-ctags/rexx.c +39 -0
  113. data/ext/vendor/exuberant-ctags/routines.c +891 -0
  114. data/ext/vendor/exuberant-ctags/routines.h +134 -0
  115. data/ext/vendor/exuberant-ctags/ruby.c +408 -0
  116. data/ext/vendor/exuberant-ctags/scheme.c +111 -0
  117. data/ext/vendor/exuberant-ctags/sh.c +115 -0
  118. data/ext/vendor/exuberant-ctags/slang.c +41 -0
  119. data/ext/vendor/exuberant-ctags/sml.c +212 -0
  120. data/ext/vendor/exuberant-ctags/sort.c +230 -0
  121. data/ext/vendor/exuberant-ctags/sort.h +32 -0
  122. data/ext/vendor/exuberant-ctags/source.mak +122 -0
  123. data/ext/vendor/exuberant-ctags/sql.c +2112 -0
  124. data/ext/vendor/exuberant-ctags/strlist.c +281 -0
  125. data/ext/vendor/exuberant-ctags/strlist.h +54 -0
  126. data/ext/vendor/exuberant-ctags/tcl.c +116 -0
  127. data/ext/vendor/exuberant-ctags/tex.c +524 -0
  128. data/ext/vendor/exuberant-ctags/verilog.c +340 -0
  129. data/ext/vendor/exuberant-ctags/vhdl.c +835 -0
  130. data/ext/vendor/exuberant-ctags/vim.c +636 -0
  131. data/ext/vendor/exuberant-ctags/vstring.c +232 -0
  132. data/ext/vendor/exuberant-ctags/vstring.h +85 -0
  133. data/ext/vendor/exuberant-ctags/yacc.c +40 -0
  134. data/lib/ctags/exuberant.rb +45 -0
  135. data/lib/ctags/version.rb +3 -0
  136. data/lib/ctags.rb +6 -0
  137. data/test/test_ctags.rb +24 -0
  138. metadata +233 -0
@@ -0,0 +1,88 @@
1
+ The following individuals are registered as developers for the maintenance of
2
+ Exuberant Ctags. They are listed by their SourgeForge username and by the
3
+ To send email to any one of them, send it to <username@users.sourceforge.net>.
4
+
5
+ Ctags SourgeForge Full
6
+ Parser username Name
7
+ ---------- ----------- -----
8
+ Ant dfishburn David Fishburn
9
+ AWK jkoshy Joseph Koshy
10
+ Basic elias Elias Pschernig
11
+ C# elliotth Elliott Hughes
12
+ DosBatch dfishburn David Fishburn
13
+ Flex dfishburn David Fishburn
14
+ Java elliotth Elliott Hughes
15
+ JavaScript dfishburn David Fishburn
16
+ MATlAB dfishburn David Fishburn
17
+ OCaml vberthoux Vincent Berthoux
18
+ Perl perlguy0 Dmitri Tikhonov
19
+ PHP jafl John Lindal
20
+ Python elias Elias Pschernig
21
+ Ruby elliotth Elliott Hughes
22
+ SML jkoshy Joseph Koshy
23
+ SQL dfishburn David Fishburn
24
+ TeX dfishburn David Fishburn
25
+ Vim dfishburn David Fishburn
26
+ All else dhiebert Darren Hiebert
27
+
28
+ How To Build & Test Like A Maintainer
29
+ =====================================
30
+
31
+ Prerequisites
32
+ -------------
33
+
34
+ Debian/Ubuntu:
35
+
36
+ sudo apt-get install build-essential subversion autoconf
37
+
38
+ Mac OS:
39
+
40
+ Install the Xcode developer tools, available here:
41
+ http://developer.apple.com/tools/download/
42
+
43
+ RedHat:
44
+
45
+ up2date --nosig subversion autoheader autoconf
46
+
47
+ Windows:
48
+
49
+ Install Cygwin plus its Subversion and GNU Make packages.
50
+
51
+ Building
52
+ --------
53
+
54
+ First time:
55
+
56
+ svn co https://ctags.svn.sourceforget.net/svnroot/ctags/trunk ctags
57
+ # Miss off the "/trunk" above if you want access to old releases or the
58
+ # web site.
59
+ cd ctags
60
+ autoheader
61
+ autoconf
62
+ ./configure --enable-maintainer-mode
63
+ make -j
64
+
65
+ Later:
66
+
67
+ cd ctags
68
+ svn update
69
+ make -j
70
+
71
+ Testing
72
+ -------
73
+
74
+ First time:
75
+
76
+ cd ctags
77
+ cp /usr/bin/ctags ctags.ref
78
+ # Edit "testing.mak" so CTAGS_TEST = ./dctags
79
+ # Edit "testing.mak" so CTAGS_REF = ./ctags.ref
80
+ make test
81
+
82
+ Later:
83
+
84
+ make test
85
+
86
+ Whenever you're happy with the results and update/commit:
87
+
88
+ cp ./dctags ./ctags.ref
@@ -0,0 +1,222 @@
1
+ # $Id: Makefile.in 709 2009-07-04 05:29:28Z dhiebert $
2
+ #
3
+ # Makefile for UNIX-like platforms.
4
+ #
5
+
6
+ # These are the names of the installed programs, in case you wish to change
7
+ # them.
8
+ #
9
+ CTAGS_PROG = ctags
10
+ ETAGS_PROG = etags
11
+
12
+ # Set this to the path to your shell (must run Bourne shell commands).
13
+ #
14
+ SHELL = /bin/sh
15
+
16
+ # GNU Autoconf variables. These are set by the "configure" script when it
17
+ # runs.
18
+ #
19
+ exec_prefix = @exec_prefix@
20
+ datarootdir = @datarootdir@
21
+ prefix = @prefix@
22
+ bindir = @bindir@
23
+ srcdir = @srcdir@
24
+ libdir = @libdir@
25
+ incdir = @includedir@
26
+ mandir = @mandir@
27
+ SLINK = @LN_S@
28
+ STRIP = @STRIP@
29
+ CC = @CC@
30
+ DEFS = @DEFS@
31
+ CFLAGS = @CFLAGS@
32
+ LDFLAGS = @LDFLAGS@
33
+ LIBS = @LIBS@
34
+ EXEEXT = @EXEEXT@
35
+ OBJEXT = @OBJEXT@
36
+
37
+ # If you cannot run the "configure" script to set the variables above, then
38
+ # uncomment the defines below and customize them for your environment. If
39
+ # your system does not support symbolic (soft) links, then remove the -s
40
+ # from SLINK.
41
+ #
42
+ #srcdir = .
43
+ #bindir = /usr/local/bin
44
+ #mandir = /usr/local/man
45
+ #SLINK = ln -s
46
+ #STRIP = strip
47
+ #CC = cc
48
+ #DEFS = -DHAVE_CONFIG_H
49
+ #CFLAGS = -O
50
+ #LDFLAGS=
51
+
52
+ include $(srcdir)/source.mak
53
+
54
+ #
55
+ #--- You should not need to modify anything below this line. ---#
56
+ #
57
+
58
+ .SUFFIXES:
59
+ .SUFFIXES: .c .$(OBJEXT)
60
+
61
+ VPATH = $(srcdir)
62
+
63
+ INSTALL = cp
64
+ INSTALL_PROG = $(INSTALL)
65
+ INSTALL_DATA = $(INSTALL)
66
+
67
+ READ_LIB = readtags.$(OBJEXT)
68
+ READ_INC = readtags.h
69
+
70
+ MANPAGE = ctags.1
71
+
72
+ AUTO_GEN = configure config.h.in
73
+ CONFIG_GEN = config.cache config.log config.status config.run config.h Makefile
74
+
75
+ #
76
+ # names for installed man pages
77
+ #
78
+ manext = 1
79
+ man1dir = $(mandir)/man1
80
+ CMAN = $(CTAGS_PROG).$(manext)
81
+ EMAN = $(ETAGS_PROG).$(manext)
82
+
83
+ #
84
+ # destinations for installed files
85
+ #
86
+ CTAGS_EXEC = $(CTAGS_PROG)$(EXEEXT)
87
+ ETAGS_EXEC = $(ETAGS_PROG)$(EXEEXT)
88
+ DEST_CTAGS = $(bindir)/$(CTAGS_EXEC)
89
+ DEST_ETAGS = $(bindir)/$(ETAGS_EXEC)
90
+ DEST_READ_LIB = $(libdir)/$(READ_LIB)
91
+ DEST_READ_INC = $(incdir)/$(READ_INC)
92
+ DEST_CMAN = $(man1dir)/$(CMAN)
93
+ DEST_EMAN = $(man1dir)/$(EMAN)
94
+
95
+ #
96
+ # primary rules
97
+ #
98
+ all: $(CTAGS_EXEC) $(READ_LIB)
99
+
100
+ $(CTAGS_EXEC): $(OBJECTS)
101
+ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
102
+
103
+ dctags$(EXEEXT): debug.c $(SOURCES) $(HEADERS)
104
+ $(CC) -I. -I$(srcdir) $(DEFS) -DDEBUG -g $(LDFLAGS) -o $@ debug.c $(SOURCES)
105
+
106
+ readtags$(EXEEXT): readtags.c readtags.h
107
+ $(CC) -DREADTAGS_MAIN -I. -I$(srcdir) $(DEFS) $(CFLAGS) $(LDFLAGS) -o $@ readtags.c
108
+
109
+ ETYPEREF_OBJS = etyperef.o keyword.o routines.o strlist.o vstring.o
110
+ etyperef$(EXEEXT): $(ETYPEREF_OBJS)
111
+ $(CC) $(LDFLAGS) -o $@ $(ETYPEREF_OBJS)
112
+
113
+ etyperef.o: eiffel.c
114
+ $(CC) -DTYPE_REFERENCE_TOOL -I. -I$(srcdir) $(DEFS) $(CFLAGS) -o $@ -c eiffel.c
115
+
116
+ $(OBJECTS): $(HEADERS) config.h
117
+
118
+ #
119
+ # generic install rules
120
+ #
121
+ install: @install_targets@
122
+
123
+ install-strip: install
124
+
125
+ install-ctags: install-cbin install-cman
126
+ install-etags: install-ebin install-eman
127
+
128
+ $(bindir) $(man1dir) $(libdir) $(incdir):
129
+ $(srcdir)/mkinstalldirs $@
130
+
131
+ FORCE:
132
+
133
+ #
134
+ # install the executables
135
+ #
136
+ install-bin: install-cbin install-ebin install-lib
137
+ install-cbin: $(DEST_CTAGS)
138
+ install-ebin: $(DEST_ETAGS)
139
+ install-lib: $(DEST_READ_LIB) $(DEST_READ_INC)
140
+
141
+ $(DEST_CTAGS): $(CTAGS_EXEC) $(bindir) FORCE
142
+ $(INSTALL_PROG) $(CTAGS_EXEC) $@ && chmod 755 $@
143
+
144
+ $(DEST_ETAGS):
145
+ - if [ -x $(DEST_CTAGS) ]; then \
146
+ cd $(bindir) && $(SLINK) $(CTAGS_EXEC) $(ETAGS_EXEC); \
147
+ fi
148
+
149
+ #
150
+ # install the man pages
151
+ #
152
+ install-man: install-cman install-eman
153
+ install-cman: $(DEST_CMAN)
154
+ install-eman: $(DEST_EMAN)
155
+
156
+ $(DEST_CMAN): $(man1dir) $(MANPAGE) FORCE
157
+ - $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $@ && chmod 644 $@
158
+
159
+ $(DEST_EMAN):
160
+ - if [ -f $(DEST_CMAN) ]; then \
161
+ cd $(man1dir) && $(SLINK) $(CMAN) $(EMAN); \
162
+ fi
163
+
164
+ #
165
+ # install the library
166
+ #
167
+ $(DEST_READ_LIB): $(READ_LIB) $(libdir) FORCE
168
+ $(INSTALL_PROG) $(READ_LIB) $@ && chmod 644 $@
169
+
170
+ $(DEST_READ_INC): $(READ_INC) $(incdir) FORCE
171
+ $(INSTALL_PROG) $(READ_INC) $@ && chmod 644 $@
172
+
173
+
174
+ #
175
+ # rules for uninstalling
176
+ #
177
+ uninstall: uninstall-bin uninstall-lib uninstall-man
178
+
179
+ uninstall-bin:
180
+ - rm -f $(DEST_CTAGS) $(DEST_ETAGS)
181
+
182
+ uninstall-lib:
183
+ - rm -f $(DEST_READ_LIB) $(DEST_READ_INC)
184
+
185
+ uninstall-man:
186
+ - rm -f $(DEST_CMAN) $(DEST_EMAN)
187
+
188
+ uninstall-ctags:
189
+ - rm -f $(DEST_CTAGS) $(DEST_CMAN)
190
+
191
+ uninstall-etags:
192
+ - rm -f $(DEST_ETAGS) $(DEST_EMAN)
193
+
194
+ #
195
+ # miscellaneous rules
196
+ #
197
+ tags: $(CTAGS_EXEC)
198
+ ./$(CTAGS_EXEC) $(srcdir)/*
199
+
200
+ TAGS: $(CTAGS_EXEC)
201
+ ./$(CTAGS_EXEC) -e $(srcdir)/*
202
+
203
+ clean:
204
+ rm -f $(OBJECTS) $(CTAGS_EXEC) tags TAGS $(READ_LIB)
205
+ rm -f dctags$(EXEEXT) readtags$(EXEEXT)
206
+ rm -f etyperef$(EXEEXT) etyperef.$(OBJEXT)
207
+
208
+ mostlyclean: clean
209
+
210
+ distclean: clean
211
+ rm -f $(CONFIG_GEN)
212
+
213
+ maintainerclean: distclean
214
+ rm -f $(AUTO_GEN)
215
+
216
+ #
217
+ # implicit rules
218
+ #
219
+ .c.$(OBJEXT):
220
+ $(CC) -I. -I$(srcdir) $(DEFS) $(CFLAGS) -c $<
221
+
222
+ # vi:set tabstop=8: