acoc 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/BUGS +62 -0
- data/Changelog +648 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +340 -0
- data/README.md +117 -0
- data/Rakefile +1 -0
- data/TODO +11 -0
- data/acoc.conf +226 -0
- data/acoc.gemspec +35 -0
- data/bin/acoc +75 -0
- data/lib/acoc.rb +307 -0
- data/lib/acoc/config.rb +3 -0
- data/lib/acoc/program.rb +12 -0
- data/lib/acoc/rule.rb +12 -0
- data/lib/acoc/version.rb +3 -0
- metadata +113 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 73b0a4e02167d3399cf2ee74f1cdb759759850ae
|
4
|
+
data.tar.gz: ccea84e5127ffd9d7744e92d04af09e63acfa354
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4f30ad9fd665042c972928e39d3a69e076a97af0030f818ec7d0fa62195dff949c3198c6e3911f49507b14d17bff8fcfb4eb3685bb6cebc2b8636601d7a43474
|
7
|
+
data.tar.gz: 839615cf3088977ac0550d489a0c6231e0071ed89a8c3be23e009077aa3bf1479a4080f1dd8b53b7606d378810268d39bba2d0a73200fe1d607787085adb8beb
|
data/.gitignore
ADDED
data/BUGS
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# $Id: BUGS,v 1.6 2004/11/01 00:02:49 ianmacd Exp $
|
2
|
+
|
3
|
+
Known issues with acoc
|
4
|
+
----------------------
|
5
|
+
|
6
|
+
- Interactive programs do not work well with acoc.
|
7
|
+
|
8
|
+
This includes things like 'make config' when building a kernel on Linux,
|
9
|
+
Ruby's interactive interpreter (irb) and others. This is due to the fact
|
10
|
+
that acoc's output is line-buffered.
|
11
|
+
|
12
|
+
- TkDiff displays error messages when calling diff via acoc.
|
13
|
+
|
14
|
+
- curses based programs don't always work correctly, such as mtr.
|
15
|
+
|
16
|
+
- Programs that expect to output to a tty may act oddly when called by acoc in
|
17
|
+
its default mode, since their output is first passed through a pipe to acoc
|
18
|
+
and only then sent to stdout.
|
19
|
+
|
20
|
+
ls, for example, formats its basic output as a single column if it detects
|
21
|
+
that it is not outputting to a tty, so the output of 'ls' will be the same
|
22
|
+
as for 'ls -1' when called via acoc in its default mode.
|
23
|
+
|
24
|
+
The /p program flag was added to acoc 0.3.0 to circumvent this problem.
|
25
|
+
|
26
|
+
- A similar problem used to occur when acoc was invoked via a symlink and
|
27
|
+
acoc's stdout was not a tty.
|
28
|
+
|
29
|
+
Consider the following line of code from /etc/bashrc on a Red Hat Linux
|
30
|
+
system:
|
31
|
+
|
32
|
+
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
|
33
|
+
|
34
|
+
If id(1) is symlinked to acoc and acoc adds ANSI colour codes to id's
|
35
|
+
output, the backticks in the above three invocations of id will capture the
|
36
|
+
colour codes along with the normal output, causing the comparison to fail
|
37
|
+
with an error.
|
38
|
+
|
39
|
+
For this reason, the default behaviour of acoc as of version 0.2.5 is to
|
40
|
+
leave command output unaltered if stdout is not a tty. This can be
|
41
|
+
overridden by specifying the /t flag on a 'program_spec'.
|
42
|
+
|
43
|
+
|
44
|
+
If you encounter one of the above problems while invoking a program via a
|
45
|
+
symlink to acoc and need to avoid running the program through acoc on this
|
46
|
+
particular occasion, call the program using its full path to ensure that acoc
|
47
|
+
is bypassed, e.g.
|
48
|
+
|
49
|
+
$ /usr/bin/make config
|
50
|
+
|
51
|
+
instead of:
|
52
|
+
|
53
|
+
$ make config
|
54
|
+
|
55
|
+
If the program is called indirectly, such as diff being called by TkDiff,
|
56
|
+
circumvent the calling of diff via acoc by passing your program an explicit
|
57
|
+
path that omits /usr/acoc/bin, e.g.
|
58
|
+
|
59
|
+
$ PATH=/usr/bin:/usr/local/bin:/usr/X11R6/bin tkdiff file1 file2
|
60
|
+
|
61
|
+
Then, the /usr/acoc/bin/diff symlink will not be found when TkDiff invokes
|
62
|
+
diff.
|
data/Changelog
ADDED
@@ -0,0 +1,648 @@
|
|
1
|
+
|
2
|
+
RCS file: /var/cvs/acoc/acoc,v
|
3
|
+
Working file: acoc
|
4
|
+
head: 1.67
|
5
|
+
branch:
|
6
|
+
locks: strict
|
7
|
+
access list:
|
8
|
+
symbolic names:
|
9
|
+
v0-7-1: 1.67
|
10
|
+
v0-7-0: 1.65
|
11
|
+
v0-6-0: 1.62
|
12
|
+
v0-5-2: 1.58
|
13
|
+
v0-5-1: 1.57
|
14
|
+
v0-5-0: 1.56
|
15
|
+
v0-4-7: 1.53
|
16
|
+
v0-4-6: 1.52
|
17
|
+
v0-4-5: 1.51
|
18
|
+
v0-4-4: 1.47
|
19
|
+
v0-4-3: 1.46
|
20
|
+
v0-4-2: 1.44
|
21
|
+
v0-4-1: 1.38
|
22
|
+
v0-4-0: 1.37
|
23
|
+
v0-3-0: 1.33
|
24
|
+
v0-2-6: 1.25
|
25
|
+
v0-2-5: 1.22
|
26
|
+
v0-2-1: 1.20
|
27
|
+
v0-2-0: 1.19
|
28
|
+
default: 1.1.1.1
|
29
|
+
rc: 1.1.1
|
30
|
+
keyword substitution: kv
|
31
|
+
total revisions: 68; selected revisions: 68
|
32
|
+
description:
|
33
|
+
----------------------------
|
34
|
+
revision 1.67
|
35
|
+
date: 2005/02/27 01:02:24; author: ianmacd; state: Exp; lines: +5 -5
|
36
|
+
|
37
|
+
Bump version to 0.7.1 and copyright message to include 2005.
|
38
|
+
----------------------------
|
39
|
+
revision 1.66
|
40
|
+
date: 2005/02/27 01:01:17; author: ianmacd; state: Exp; lines: +5 -2
|
41
|
+
|
42
|
+
Catch SIGPIPE during exit.
|
43
|
+
----------------------------
|
44
|
+
revision 1.65
|
45
|
+
date: 2004/10/31 23:57:33; author: ianmacd; state: Exp; lines: +3 -3
|
46
|
+
|
47
|
+
- bump version to 0.7.0
|
48
|
+
----------------------------
|
49
|
+
revision 1.64
|
50
|
+
date: 2004/10/28 09:19:08; author: ianmacd; state: Exp; lines: +3 -3
|
51
|
+
|
52
|
+
- Make it possible to use regular expressions in program specs,
|
53
|
+
e.g. [ps -.*(e.*f|f.*e)]. Additionally, @spec@ can be used to delimit specs,
|
54
|
+
instead of [spec].
|
55
|
+
----------------------------
|
56
|
+
revision 1.63
|
57
|
+
date: 2004/10/28 06:34:48; author: ianmacd; state: Exp; lines: +4 -3
|
58
|
+
|
59
|
+
- When removing acoc's path from PATH, remove it multiple times if necessary,
|
60
|
+
to avoid reinvoking acoc.
|
61
|
+
----------------------------
|
62
|
+
revision 1.62
|
63
|
+
date: 2004/10/23 08:49:08; author: ianmacd; state: Exp; lines: +3 -3
|
64
|
+
|
65
|
+
- update to 0.6.0
|
66
|
+
----------------------------
|
67
|
+
revision 1.61
|
68
|
+
date: 2004/10/21 09:17:46; author: ianmacd; state: Exp; lines: +7 -3
|
69
|
+
|
70
|
+
- rework assembly of config file list array
|
71
|
+
----------------------------
|
72
|
+
revision 1.60
|
73
|
+
date: 2004/10/20 08:59:39; author: ianmacd; state: Exp; lines: +4 -1
|
74
|
+
|
75
|
+
- document $ACOCRC
|
76
|
+
----------------------------
|
77
|
+
revision 1.59
|
78
|
+
date: 2004/10/20 08:47:49; author: ianmacd; state: Exp; lines: +3 -3
|
79
|
+
|
80
|
+
- allow a user-definable config file to be given in $ACOCRC
|
81
|
+
----------------------------
|
82
|
+
revision 1.58
|
83
|
+
date: 2004/04/05 07:37:51; author: ianmacd; state: Exp; lines: +8 -8
|
84
|
+
|
85
|
+
- bump version to 0.5.2
|
86
|
+
- command line args expanded by globbing presented problems if the expansion
|
87
|
+
then contained single quotes (ls on mp3 files would often show this)
|
88
|
+
- expand ARGV array when passing it to colour method
|
89
|
+
- remove a superfluous debugging statement
|
90
|
+
----------------------------
|
91
|
+
revision 1.57
|
92
|
+
date: 2004/02/05 03:36:20; author: ianmacd; state: Exp; lines: +6 -4
|
93
|
+
|
94
|
+
- properly catch Errno::ECHILD
|
95
|
+
- update to version 0.5.1
|
96
|
+
----------------------------
|
97
|
+
revision 1.56
|
98
|
+
date: 2004/01/12 11:02:32; author: ianmacd; state: Exp; lines: +8 -5
|
99
|
+
|
100
|
+
- sometimes need to catch Errno::ECHILD in waitpid2
|
101
|
+
----------------------------
|
102
|
+
revision 1.55
|
103
|
+
date: 2004/01/12 10:57:38; author: ianmacd; state: Exp; lines: +2 -3
|
104
|
+
|
105
|
+
- move a line of comment
|
106
|
+
----------------------------
|
107
|
+
revision 1.54
|
108
|
+
date: 2004/01/12 10:31:04; author: ianmacd; state: Exp; lines: +19 -9
|
109
|
+
|
110
|
+
- trap SIGCHLD and make sure non-zero exit status of child process is
|
111
|
+
passed back to parent, so that we don't accidentally mask failures
|
112
|
+
- update version to 0.5.0
|
113
|
+
----------------------------
|
114
|
+
revision 1.53
|
115
|
+
date: 2003/12/10 10:53:39; author: ianmacd; state: Exp; lines: +5 -5
|
116
|
+
|
117
|
+
- fix bug that caused /r to work only for the first spec that included it
|
118
|
+
----------------------------
|
119
|
+
revision 1.52
|
120
|
+
date: 2003/09/12 16:16:15; author: ianmacd; state: Exp; lines: +10 -12
|
121
|
+
|
122
|
+
- programs run in pseudo-tty should not run in their own session
|
123
|
+
----------------------------
|
124
|
+
revision 1.51
|
125
|
+
date: 2003/07/31 04:41:35; author: ianmacd; state: Exp; lines: +2 -2
|
126
|
+
|
127
|
+
- update version in documentation
|
128
|
+
----------------------------
|
129
|
+
revision 1.50
|
130
|
+
date: 2003/07/31 04:39:56; author: ianmacd; state: Exp; lines: +2 -2
|
131
|
+
|
132
|
+
- update version to 0.4.5
|
133
|
+
----------------------------
|
134
|
+
revision 1.49
|
135
|
+
date: 2003/07/31 04:38:40; author: ianmacd; state: Exp; lines: +2 -2
|
136
|
+
|
137
|
+
- handle signals properly
|
138
|
+
----------------------------
|
139
|
+
revision 1.48
|
140
|
+
date: 2003/07/24 21:15:03; author: ianmacd; state: Exp; lines: +2 -2
|
141
|
+
|
142
|
+
- why am I trying to trap SIGSTOP?
|
143
|
+
----------------------------
|
144
|
+
revision 1.47
|
145
|
+
date: 2003/07/18 09:55:12; author: ianmacd; state: Exp; lines: +10 -5
|
146
|
+
|
147
|
+
- Ruby 1.6.x can't take rescue as a statement modifier
|
148
|
+
----------------------------
|
149
|
+
revision 1.46
|
150
|
+
date: 2003/07/18 08:44:09; author: ianmacd; state: Exp; lines: +3 -3
|
151
|
+
|
152
|
+
- increase version to 0.4.3
|
153
|
+
----------------------------
|
154
|
+
revision 1.45
|
155
|
+
date: 2003/07/18 08:35:16; author: ianmacd; state: Exp; lines: +23 -9
|
156
|
+
|
157
|
+
- go back to using Masahiro Tomita's Ruby/TPty library, after problems
|
158
|
+
with standard PTY library
|
159
|
+
----------------------------
|
160
|
+
revision 1.44
|
161
|
+
date: 2003/07/17 05:47:28; author: ianmacd; state: Exp; lines: +4 -4
|
162
|
+
|
163
|
+
- update to version 0.4.2
|
164
|
+
----------------------------
|
165
|
+
revision 1.43
|
166
|
+
date: 2003/07/15 09:44:53; author: ianmacd; state: Exp; lines: +51 -41
|
167
|
+
|
168
|
+
- modularise the colouring code by putting it into its own method, colour_line
|
169
|
+
----------------------------
|
170
|
+
revision 1.42
|
171
|
+
date: 2003/07/15 09:29:49; author: ianmacd; state: Exp; lines: +7 -21
|
172
|
+
|
173
|
+
- use standard PTY module, rather than Ruby/TPty
|
174
|
+
----------------------------
|
175
|
+
revision 1.41
|
176
|
+
date: 2003/07/15 08:58:09; author: ianmacd; state: Exp; lines: +4 -3
|
177
|
+
|
178
|
+
- add RD paragraph on use of $ACOC
|
179
|
+
----------------------------
|
180
|
+
revision 1.40
|
181
|
+
date: 2003/07/15 08:44:59; author: ianmacd; state: Exp; lines: +3 -3
|
182
|
+
|
183
|
+
- no colouring if $ACOC == 'none'
|
184
|
+
----------------------------
|
185
|
+
revision 1.39
|
186
|
+
date: 2003/07/14 03:27:42; author: ianmacd; state: Exp; lines: +3 -6
|
187
|
+
|
188
|
+
- minor simplification
|
189
|
+
----------------------------
|
190
|
+
revision 1.38
|
191
|
+
date: 2003/07/08 06:57:48; author: ianmacd; state: Exp; lines: +7 -7
|
192
|
+
|
193
|
+
- fix bug whereby arguments containing white space were expanded to
|
194
|
+
multiple arguments
|
195
|
+
----------------------------
|
196
|
+
revision 1.37
|
197
|
+
date: 2003/07/06 22:42:23; author: ianmacd; state: Exp; lines: +5 -5
|
198
|
+
|
199
|
+
- update to 0.4.0
|
200
|
+
----------------------------
|
201
|
+
revision 1.36
|
202
|
+
date: 2003/07/03 06:41:08; author: ianmacd; state: Exp; lines: +12 -3
|
203
|
+
|
204
|
+
- when trying to match the program specs against the command line, try to
|
205
|
+
match the longest (i.e. most specific) spec first, so that if there's a
|
206
|
+
config for, for example, 'ps ax', it will match before the one for 'ps a'
|
207
|
+
----------------------------
|
208
|
+
revision 1.35
|
209
|
+
date: 2003/07/01 08:20:32; author: ianmacd; state: Exp; lines: +16 -12
|
210
|
+
|
211
|
+
- move more stuff into 'colour' method
|
212
|
+
----------------------------
|
213
|
+
revision 1.34
|
214
|
+
date: 2003/07/01 07:48:57; author: ianmacd; state: Exp; lines: +19 -15
|
215
|
+
|
216
|
+
- implement argument-specific colouring, so that colouring depends on how
|
217
|
+
the command was invoked
|
218
|
+
----------------------------
|
219
|
+
revision 1.33
|
220
|
+
date: 2003/06/30 02:17:37; author: ianmacd; state: Exp; lines: +3 -3
|
221
|
+
|
222
|
+
- update version to 0.3.0
|
223
|
+
----------------------------
|
224
|
+
revision 1.32
|
225
|
+
date: 2003/06/30 01:53:27; author: ianmacd; state: Exp; lines: +6 -6
|
226
|
+
|
227
|
+
- avoid unnecessary use of * operator with ARGV
|
228
|
+
----------------------------
|
229
|
+
revision 1.31
|
230
|
+
date: 2003/06/29 00:49:08; author: ianmacd; state: Exp; lines: +2 -2
|
231
|
+
|
232
|
+
- call our own run method, not exec when running target program in fork
|
233
|
+
for pty
|
234
|
+
----------------------------
|
235
|
+
revision 1.30
|
236
|
+
date: 2003/06/29 00:29:51; author: ianmacd; state: Exp; lines: +96 -64
|
237
|
+
|
238
|
+
- 'require' optional Ruby/TPty for pseudo-terminal usage
|
239
|
+
- move colouring code into its own method, colour
|
240
|
+
- new program flag /p allocates a pseudo-terminal through which to run the
|
241
|
+
target program
|
242
|
+
----------------------------
|
243
|
+
revision 1.29
|
244
|
+
date: 2003/06/27 16:11:21; author: ianmacd; state: Exp; lines: +10 -7
|
245
|
+
|
246
|
+
- subsequent program specs for a given program were replacing all previous
|
247
|
+
ones
|
248
|
+
----------------------------
|
249
|
+
revision 1.28
|
250
|
+
date: 2003/06/27 07:50:18; author: ianmacd; state: Exp; lines: +6 -8
|
251
|
+
|
252
|
+
- a method contains an implicit begin/end block
|
253
|
+
----------------------------
|
254
|
+
revision 1.27
|
255
|
+
date: 2003/06/27 07:19:27; author: ianmacd; state: Exp; lines: +70 -55
|
256
|
+
|
257
|
+
- program specs are now Program objects, rather than arrays of hashes.
|
258
|
+
The colour specs that used to form the values of the hash and were,
|
259
|
+
themselves, a hash of arrays, are now Rule objects.
|
260
|
+
|
261
|
+
This allows us to eliminate the @flags hash completely and simplify
|
262
|
+
other parts of the code.
|
263
|
+
----------------------------
|
264
|
+
revision 1.26
|
265
|
+
date: 2003/06/26 07:46:25; author: ianmacd; state: Exp; lines: +6 -4
|
266
|
+
|
267
|
+
- merely exec() the program if there *is* a configuration stanza, but it
|
268
|
+
contains *no* rules
|
269
|
+
----------------------------
|
270
|
+
revision 1.25
|
271
|
+
date: 2003/06/26 04:19:46; author: ianmacd; state: Exp; lines: +10 -3
|
272
|
+
|
273
|
+
- bump version to 0.2.6
|
274
|
+
- space out some of the code blocks a little
|
275
|
+
----------------------------
|
276
|
+
revision 1.24
|
277
|
+
date: 2003/06/26 04:17:34; author: ianmacd; state: Exp; lines: +2 -2
|
278
|
+
|
279
|
+
- parse /usr/local/etc/acoc.conf after /etc/acoc.conf
|
280
|
+
----------------------------
|
281
|
+
revision 1.23
|
282
|
+
date: 2003/06/26 04:16:56; author: ianmacd; state: Exp; lines: +7 -1
|
283
|
+
|
284
|
+
- add new operational flag, /r, which removes all previous matching rules
|
285
|
+
for the given program
|
286
|
+
----------------------------
|
287
|
+
revision 1.22
|
288
|
+
date: 2003/06/21 10:27:01; author: ianmacd; state: Exp; lines: +22 -14
|
289
|
+
|
290
|
+
- by default, output is not coloured if stdout is not a tty
|
291
|
+
- add new program flag /t for allowing output to be coloured even when stdout
|
292
|
+
is not a tty
|
293
|
+
----------------------------
|
294
|
+
revision 1.21
|
295
|
+
date: 2003/06/20 23:22:28; author: ianmacd; state: Exp; lines: +3 -3
|
296
|
+
|
297
|
+
- exec command without colouring if STDOUT is not a tty. There's no point
|
298
|
+
having colour output that you'll never see and scripts that capture
|
299
|
+
command output don't like it either.
|
300
|
+
----------------------------
|
301
|
+
revision 1.20
|
302
|
+
date: 2003/06/20 08:53:55; author: ianmacd; state: Exp; lines: +3 -3
|
303
|
+
|
304
|
+
- update version to 0.2.1
|
305
|
+
----------------------------
|
306
|
+
revision 1.19
|
307
|
+
date: 2003/06/11 07:31:42; author: ianmacd; state: Exp; lines: +3 -3
|
308
|
+
|
309
|
+
- change version to 0.2.0
|
310
|
+
----------------------------
|
311
|
+
revision 1.18
|
312
|
+
date: 2003/06/10 01:38:35; author: ianmacd; state: Exp; lines: +10 -3
|
313
|
+
|
314
|
+
- catch a SIGPIPE while printing
|
315
|
+
- error message if we're called on a non-existent program should go to
|
316
|
+
stderr, not stdout
|
317
|
+
----------------------------
|
318
|
+
revision 1.17
|
319
|
+
date: 2003/06/09 10:22:03; author: ianmacd; state: Exp; lines: +1 -2
|
320
|
+
|
321
|
+
- remove bug about program flags needing to appear on final stanza
|
322
|
+
----------------------------
|
323
|
+
revision 1.16
|
324
|
+
date: 2003/06/09 10:07:10; author: ianmacd; state: Exp; lines: +3 -2
|
325
|
+
|
326
|
+
- make program flags cumulative with each stanza
|
327
|
+
----------------------------
|
328
|
+
revision 1.15
|
329
|
+
date: 2003/06/08 06:39:16; author: ianmacd; state: Exp; lines: +3 -2
|
330
|
+
|
331
|
+
- check for a config file at /usr/local/etc/acoc.conf, too
|
332
|
+
----------------------------
|
333
|
+
revision 1.14
|
334
|
+
date: 2003/06/08 06:23:47; author: ianmacd; state: Exp; lines: +14 -6
|
335
|
+
|
336
|
+
- update RD documentation
|
337
|
+
----------------------------
|
338
|
+
revision 1.13
|
339
|
+
date: 2003/06/08 02:03:33; author: ianmacd; state: Exp; lines: +3 -2
|
340
|
+
|
341
|
+
- minor documentation fix
|
342
|
+
----------------------------
|
343
|
+
revision 1.12
|
344
|
+
date: 2003/06/08 01:52:52; author: ianmacd; state: Exp; lines: +12 -6
|
345
|
+
|
346
|
+
- improve documentation
|
347
|
+
----------------------------
|
348
|
+
revision 1.11
|
349
|
+
date: 2003/06/08 00:49:10; author: ianmacd; state: Exp; lines: +2 -2
|
350
|
+
|
351
|
+
- RD documentation didn't parse
|
352
|
+
----------------------------
|
353
|
+
revision 1.10
|
354
|
+
date: 2003/06/08 00:32:19; author: ianmacd; state: Exp; lines: +72 -6
|
355
|
+
|
356
|
+
- include version and usage methods
|
357
|
+
- catch ENOENT when trying to call a non-existant command
|
358
|
+
- add some RD documentation
|
359
|
+
- rename to acoc
|
360
|
+
----------------------------
|
361
|
+
revision 1.9
|
362
|
+
date: 2003/06/06 06:45:16; author: ianmacd; state: Exp; lines: +2 -2
|
363
|
+
|
364
|
+
- fix bug whereby data in config stanzas for a command would be overwritten
|
365
|
+
as soon as a later stanza was parsed
|
366
|
+
----------------------------
|
367
|
+
revision 1.8
|
368
|
+
date: 2003/06/06 06:29:11; author: ianmacd; state: Exp; lines: +3 -3
|
369
|
+
|
370
|
+
- state config file name when parsing fails
|
371
|
+
----------------------------
|
372
|
+
revision 1.7
|
373
|
+
date: 2003/06/06 03:56:01; author: ianmacd; state: Exp; lines: +3 -3
|
374
|
+
|
375
|
+
- change all references to rc into references to rcf. rc conflicts with
|
376
|
+
Red Hat's Red Carpet service.
|
377
|
+
- .spec file now Obsoletes rc
|
378
|
+
----------------------------
|
379
|
+
revision 1.6
|
380
|
+
date: 2003/06/05 16:58:51; author: ianmacd; state: Exp; lines: +4 -4
|
381
|
+
|
382
|
+
- fix some white space
|
383
|
+
----------------------------
|
384
|
+
revision 1.5
|
385
|
+
date: 2003/06/05 06:03:13; author: ianmacd; state: Exp; lines: +18 -7
|
386
|
+
|
387
|
+
- allow for multiple colour attributes, such as 'bold + red', etc.
|
388
|
+
----------------------------
|
389
|
+
revision 1.4
|
390
|
+
date: 2003/06/04 05:21:52; author: ianmacd; state: Exp; lines: +3 -3
|
391
|
+
|
392
|
+
- Ruby 1.6 doesn't have String#to_sym or the Signal class, so work around
|
393
|
+
this
|
394
|
+
----------------------------
|
395
|
+
revision 1.3
|
396
|
+
date: 2003/06/03 23:29:55; author: ianmacd; state: Exp; lines: +9 -4
|
397
|
+
|
398
|
+
- add symlink handling code
|
399
|
+
----------------------------
|
400
|
+
revision 1.2
|
401
|
+
date: 2003/06/03 05:42:14; author: ianmacd; state: Exp; lines: +5 -1
|
402
|
+
|
403
|
+
- check if the command used to invoke the program is a symlink. If it is,
|
404
|
+
remove its directory from the $PATH and then add the program's name to
|
405
|
+
the start of ARGV.
|
406
|
+
|
407
|
+
This allows us to use both:
|
408
|
+
|
409
|
+
$ rc command arg1 arg2 ...
|
410
|
+
|
411
|
+
and
|
412
|
+
|
413
|
+
$ command arg1 arg2 ...
|
414
|
+
|
415
|
+
to invoke the program either directly or indirectly
|
416
|
+
----------------------------
|
417
|
+
revision 1.1
|
418
|
+
date: 2003/06/02 10:04:14; author: ianmacd; state: Exp;
|
419
|
+
branches: 1.1.1;
|
420
|
+
Initial revision
|
421
|
+
----------------------------
|
422
|
+
revision 1.1.1.1
|
423
|
+
date: 2003/06/02 10:04:14; author: ianmacd; state: Exp; lines: +0 -0
|
424
|
+
|
425
|
+
- initial check-in
|
426
|
+
=============================================================================
|
427
|
+
|
428
|
+
RCS file: /var/cvs/acoc/acoc.conf,v
|
429
|
+
Working file: acoc.conf
|
430
|
+
head: 1.34
|
431
|
+
branch:
|
432
|
+
locks: strict
|
433
|
+
access list:
|
434
|
+
symbolic names:
|
435
|
+
v0-7-1: 1.34
|
436
|
+
v0-7-0: 1.34
|
437
|
+
v0-6-0: 1.31
|
438
|
+
v0-5-2: 1.29
|
439
|
+
v0-5-1: 1.29
|
440
|
+
v0-5-0: 1.29
|
441
|
+
v0-4-7: 1.29
|
442
|
+
v0-4-6: 1.28
|
443
|
+
v0-4-5: 1.26
|
444
|
+
v0-4-4: 1.26
|
445
|
+
v0-4-3: 1.26
|
446
|
+
v0-4-2: 1.26
|
447
|
+
v0-4-1: 1.24
|
448
|
+
v0-4-0: 1.24
|
449
|
+
v0-3-0: 1.20
|
450
|
+
v0-2-6: 1.19
|
451
|
+
v0-2-5: 1.18
|
452
|
+
v0-2-1: 1.17
|
453
|
+
v0-2-0: 1.16
|
454
|
+
default: 1.1.1.1
|
455
|
+
rc: 1.1.1
|
456
|
+
keyword substitution: kv
|
457
|
+
total revisions: 35; selected revisions: 35
|
458
|
+
description:
|
459
|
+
----------------------------
|
460
|
+
revision 1.34
|
461
|
+
date: 2004/10/29 07:41:32; author: ianmacd; state: Exp; lines: +6 -6
|
462
|
+
|
463
|
+
- fix colouring for top(1), so that it works with the versions from procps
|
464
|
+
2.x and 3.x
|
465
|
+
----------------------------
|
466
|
+
revision 1.33
|
467
|
+
date: 2004/10/29 06:56:21; author: ianmacd; state: Exp; lines: +4 -5
|
468
|
+
|
469
|
+
- convert to using regexes in program specs, for better matching
|
470
|
+
----------------------------
|
471
|
+
revision 1.32
|
472
|
+
date: 2004/10/23 19:00:38; author: ianmacd; state: Exp; lines: +3 -2
|
473
|
+
|
474
|
+
- allow ls to colour when -h is given
|
475
|
+
----------------------------
|
476
|
+
revision 1.31
|
477
|
+
date: 2004/10/21 07:46:53; author: ianmacd; state: Exp; lines: +49 -5
|
478
|
+
|
479
|
+
- apt-cache, apt-get, nmap, netstat, lsmod and whereis colouring adapted
|
480
|
+
from patterns sent in by Kototama <kototama-code@altern.org>
|
481
|
+
----------------------------
|
482
|
+
revision 1.30
|
483
|
+
date: 2004/10/20 09:10:06; author: ianmacd; state: Exp; lines: +10 -1
|
484
|
+
|
485
|
+
- add config for Ruby, supplied by Gavin Sinclair <gsinclair@soyabean.com.au>
|
486
|
+
----------------------------
|
487
|
+
revision 1.29
|
488
|
+
date: 2003/10/08 03:50:15; author: ianmacd; state: Exp; lines: +3 -3
|
489
|
+
|
490
|
+
- ifconfig fixes
|
491
|
+
----------------------------
|
492
|
+
revision 1.28
|
493
|
+
date: 2003/09/12 16:09:29; author: ianmacd; state: Exp; lines: +2 -2
|
494
|
+
|
495
|
+
- ping behaves differently because of isatty(3), so use a pseudo-TTY
|
496
|
+
----------------------------
|
497
|
+
revision 1.27
|
498
|
+
date: 2003/08/14 18:10:47; author: ianmacd; state: Exp; lines: +3 -3
|
499
|
+
|
500
|
+
- minor ping and traceroute fix
|
501
|
+
----------------------------
|
502
|
+
revision 1.26
|
503
|
+
date: 2003/07/17 05:42:14; author: ianmacd; state: Exp; lines: +4 -4
|
504
|
+
|
505
|
+
- fix traceroute colouring for TTLs under 10ms
|
506
|
+
- colour traceroute errors
|
507
|
+
----------------------------
|
508
|
+
revision 1.25
|
509
|
+
date: 2003/07/16 08:32:07; author: ianmacd; state: Exp; lines: +2 -2
|
510
|
+
|
511
|
+
- diff output should not be coloured when not going to stdout
|
512
|
+
----------------------------
|
513
|
+
revision 1.24
|
514
|
+
date: 2003/07/06 23:00:39; author: ianmacd; state: Exp; lines: +2 -2
|
515
|
+
|
516
|
+
- 'ps a' will match more than 'ps ax'
|
517
|
+
----------------------------
|
518
|
+
revision 1.23
|
519
|
+
date: 2003/07/03 06:43:24; author: ianmacd; state: Exp; lines: +4 -4
|
520
|
+
|
521
|
+
- don't show command lines in bold
|
522
|
+
----------------------------
|
523
|
+
revision 1.22
|
524
|
+
date: 2003/07/01 08:54:00; author: ianmacd; state: Exp; lines: +14 -6
|
525
|
+
|
526
|
+
- make rpm rules specific to package building
|
527
|
+
- add rpm rules for querying packages
|
528
|
+
----------------------------
|
529
|
+
revision 1.21
|
530
|
+
date: 2003/07/01 07:54:42; author: ianmacd; state: Exp; lines: +11 -3
|
531
|
+
|
532
|
+
- apply diff rules to 'cvs diff' and 'p4 diff', too
|
533
|
+
- add rules for 'ps ax' and 'ps -ef'
|
534
|
+
----------------------------
|
535
|
+
revision 1.20
|
536
|
+
date: 2003/06/28 08:20:10; author: ianmacd; state: Exp; lines: +5 -4
|
537
|
+
|
538
|
+
- ls needs a pseudo-terminal
|
539
|
+
- fix diff rule
|
540
|
+
----------------------------
|
541
|
+
revision 1.19
|
542
|
+
date: 2003/06/26 05:02:46; author: ianmacd; state: Exp; lines: +4 -4
|
543
|
+
|
544
|
+
- correct and improve rules for ls
|
545
|
+
----------------------------
|
546
|
+
revision 1.18
|
547
|
+
date: 2003/06/21 10:02:40; author: ianmacd; state: Exp; lines: +7 -7
|
548
|
+
|
549
|
+
- add /t flag for programs that are unlikely to be used in scripts
|
550
|
+
----------------------------
|
551
|
+
revision 1.17
|
552
|
+
date: 2003/06/20 08:55:51; author: ianmacd; state: Exp; lines: +41 -4
|
553
|
+
|
554
|
+
- diff section now also applies to rcsdiff
|
555
|
+
- make section now also applies to gmake
|
556
|
+
- new config sections for tcpdump, ldd, nm, strace, ltrace, id and ls
|
557
|
+
----------------------------
|
558
|
+
revision 1.16
|
559
|
+
date: 2003/06/11 01:16:37; author: ianmacd; state: Exp; lines: +2 -2
|
560
|
+
|
561
|
+
- minimal support for context diffs, too
|
562
|
+
----------------------------
|
563
|
+
revision 1.15
|
564
|
+
date: 2003/06/11 01:10:49; author: ianmacd; state: Exp; lines: +15 -9
|
565
|
+
|
566
|
+
- diff rules now handle standard format as well as unified format
|
567
|
+
- break out rpmbuild rules into gcc and make rules
|
568
|
+
----------------------------
|
569
|
+
revision 1.14
|
570
|
+
date: 2003/06/08 02:16:07; author: ianmacd; state: Exp; lines: +2 -2
|
571
|
+
|
572
|
+
- top show's command lines of processes run by root in red, not the word
|
573
|
+
'root'
|
574
|
+
----------------------------
|
575
|
+
revision 1.13
|
576
|
+
date: 2003/06/08 00:47:19; author: ianmacd; state: Exp; lines: +3 -3
|
577
|
+
|
578
|
+
- rename all references to rcf to acoc
|
579
|
+
----------------------------
|
580
|
+
revision 1.12
|
581
|
+
date: 2003/06/06 07:13:57; author: ianmacd; state: Exp; lines: +7 -7
|
582
|
+
|
583
|
+
- fix ifconfig
|
584
|
+
----------------------------
|
585
|
+
revision 1.11
|
586
|
+
date: 2003/06/06 07:04:56; author: ianmacd; state: Exp; lines: +20 -5
|
587
|
+
|
588
|
+
- add route and ifconfig rules
|
589
|
+
- remove the vmstat header colouring - it didn't work
|
590
|
+
- simplify the df stuff
|
591
|
+
----------------------------
|
592
|
+
revision 1.10
|
593
|
+
date: 2003/06/06 06:20:52; author: ianmacd; state: Exp; lines: +5 -1
|
594
|
+
|
595
|
+
- rules for df
|
596
|
+
----------------------------
|
597
|
+
revision 1.9
|
598
|
+
date: 2003/06/06 03:56:01; author: ianmacd; state: Exp; lines: +2 -2
|
599
|
+
|
600
|
+
- change all references to rc into references to rcf. rc conflicts with
|
601
|
+
Red Hat's Red Carpet service.
|
602
|
+
- .spec file now Obsoletes rc
|
603
|
+
----------------------------
|
604
|
+
revision 1.8
|
605
|
+
date: 2003/06/05 16:59:19; author: ianmacd; state: Exp; lines: +36 -1
|
606
|
+
|
607
|
+
- top and vmstat rules
|
608
|
+
----------------------------
|
609
|
+
revision 1.7
|
610
|
+
date: 2003/06/05 06:00:02; author: ianmacd; state: Exp; lines: +6 -1
|
611
|
+
|
612
|
+
- extra config line for rpmbuild
|
613
|
+
----------------------------
|
614
|
+
revision 1.6
|
615
|
+
date: 2003/06/04 03:35:53; author: ianmacd; state: Exp; lines: +5 -3
|
616
|
+
|
617
|
+
- ping fixes and improvements
|
618
|
+
----------------------------
|
619
|
+
revision 1.5
|
620
|
+
date: 2003/06/04 00:37:58; author: ianmacd; state: Exp; lines: +5 -1
|
621
|
+
|
622
|
+
- add place-holder [default] section
|
623
|
+
----------------------------
|
624
|
+
revision 1.4
|
625
|
+
date: 2003/06/03 23:06:40; author: ianmacd; state: Exp; lines: +10 -2
|
626
|
+
|
627
|
+
- numerous additions and fixes
|
628
|
+
----------------------------
|
629
|
+
revision 1.3
|
630
|
+
date: 2003/06/03 05:47:58; author: ianmacd; state: Exp; lines: +2 -2
|
631
|
+
|
632
|
+
- add /a flag to traceroute to ensure all 3 packets per line are matched
|
633
|
+
----------------------------
|
634
|
+
revision 1.2
|
635
|
+
date: 2003/06/02 10:22:43; author: ianmacd; state: Exp; lines: +1 -0
|
636
|
+
|
637
|
+
- added Id tag
|
638
|
+
----------------------------
|
639
|
+
revision 1.1
|
640
|
+
date: 2003/06/02 09:47:32; author: ianmacd; state: Exp;
|
641
|
+
branches: 1.1.1;
|
642
|
+
Initial revision
|
643
|
+
----------------------------
|
644
|
+
revision 1.1.1.1
|
645
|
+
date: 2003/06/02 09:47:32; author: ianmacd; state: Exp; lines: +0 -0
|
646
|
+
|
647
|
+
- initial check-in
|
648
|
+
=============================================================================
|