summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
simon [Mon, 3 Dec 2012 18:58:16 +0000 (18:58 +0000)]
Adjust 'after' so that it tries more rigorously to parse the input
pid, and hence will complain about 'NONE' or 'MULTIPLE' as output by
'pid'. Correspondingly, adjust some comments in 'pid', including in
particular suggesting its use with 'after'.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9719
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 30 Nov 2012 20:52:55 +0000 (20:52 +0000)]
Avoid treating 'sh -c emacs' as an instance of emacs, by recognising
that the -c means that the next argument isn't the name of a script.
Likewise with various other interpreter programs.
This is unpleasantly complicating the mechanism I'll undoubtedly end
up needing for overriding the built-in interpreter list, but there we
go.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9717
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 30 Nov 2012 20:45:55 +0000 (20:45 +0000)]
Fix signedness compiler warnings.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9716
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 30 Nov 2012 20:43:59 +0000 (20:43 +0000)]
Default to returning only this user's processes (unless root), and
provide -U to alter that default.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9715
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 30 Nov 2012 20:43:58 +0000 (20:43 +0000)]
Cope with processes owned by someone other than us (for which
/proc/%d/exe won't be readlinkable).
git-svn-id: svn://svn.tartarus.org/sgt/utils@9714
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 30 Nov 2012 19:34:35 +0000 (19:34 +0000)]
New utility: 'pid', a thing more or less similar in concept to
Debian's pidof only souped up so as to recognise interpreted scripts
(in common languages), match command arguments, cope with shell
scripts (or indeed other programs) that have forked into pieces, try
to return a single pid for uses that won't cope with more than one,
and automatically exclude itself from its own search.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9713
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 9 Nov 2012 18:43:25 +0000 (18:43 +0000)]
Minor man page fixes: one typo, and missing control directory
arguments in two example command lines.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9695
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 3 Aug 2012 18:32:20 +0000 (18:32 +0000)]
Add missing Revision keyword expansions, so that --version tells the truth.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9601
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 2 Aug 2012 18:05:39 +0000 (18:05 +0000)]
Import my usual \dash macro into all these man pages, and use it for
the dashes in the 'progname - one line description' lines.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9597
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 2 Aug 2012 18:00:54 +0000 (18:00 +0000)]
New utility for the collection: 'buildrun', a rewrite of my previous
program of the same name for starting a test run in one window after a
build completes in another. The previous version (still in 'misc' in
this repository) relied on Linux inotify(7) to get all the blocking
behaviour I wanted; this implementation uses nothing more strange than
a named pipe and a flock, so it should be more portable.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9596
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 15 Jun 2012 21:43:19 +0000 (21:43 +0000)]
Output a just-read character _before_ reading the next byte. Causes
more sensible behaviour if you've done, say,
(stty -echo -icanon; cvt-utf8 -i; stty sane)
in that after you type a non-ASCII character the program won't wait
for the next byte before outputting it.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9566
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 6 May 2012 19:34:02 +0000 (19:34 +0000)]
Fix compiler warnings from OS X Lion: a missing #include and some
signed/unsigned type mismatches.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9507
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 6 May 2012 19:31:24 +0000 (19:31 +0000)]
Missing #include.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9506
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Feb 2012 20:56:09 +0000 (20:56 +0000)]
Add a '-b' option, to print the article number bounds of a newsgroup.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9418
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 23 Nov 2011 19:56:00 +0000 (19:56 +0000)]
Handle parse failures more sensibly.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9342
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 23 Nov 2011 19:48:31 +0000 (19:48 +0000)]
Considerable redesign to incorporate UI enhancements from chiark
users. Now articles may be specified as a message-id, as a group and
an article number separated by whitespace, or as a group and an
article number separated by a colon. Also, with no arguments, nntpid
will read from standard input, parse each line into an article
description, and display that article.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9341
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 23 Nov 2011 19:48:30 +0000 (19:48 +0000)]
Don't loop forever on authentication failure. If the first attempt to
fetch the article doesn't succeed, we should try authenticating; but
if the second attempt fails, then authentication didn't work, so we
should give up rather than try it pointlessly again.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9340
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 23 Nov 2011 19:48:29 +0000 (19:48 +0000)]
Chomp a newline off the end of the text read from /etc/nntpserver.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9339
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:55:59 +0000 (16:55 +0000)]
Add the new options to the man page, and correct the spelling of one
existing one while I'm here.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9091
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:47:23 +0000 (16:47 +0000)]
Oops, no, that's wrong. When we lose the selection, we must stop
responding to SelectionRequest events, and _only_ continue with
incremental transfers already in progress.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9090
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:45:58 +0000 (16:45 +0000)]
Don't quit in the middle of transferring an incremental selection.
(ICCCM 2.2)
git-svn-id: svn://svn.tartarus.org/sgt/utils@9089
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:43:12 +0000 (16:43 +0000)]
Workaround for old clients not specifying a receiving property atom
that I just found in ICCCM.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9088
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:39:56 +0000 (16:39 +0000)]
More configuration options. Just in case any other clients don't
support receiving INCR (like we didn't, 24 hours ago!), an option to
disable sending it. Also options to control the use of the cut buffers
and the value of SELDELTA.
One behaviour change while I'm here: we now don't use the cut buffers
for data bigger than SELDELTA. I think this is probably sensible.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9087
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 16:26:52 +0000 (16:26 +0000)]
Write-side support for INCR.
git-svn-id: svn://svn.tartarus.org/sgt/utils@9086
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 12 Feb 2011 12:39:00 +0000 (12:39 +0000)]
Read-side support for the incremental selection transfer mode
signalled by the INCR type (ICCCM 2.7.2).
git-svn-id: svn://svn.tartarus.org/sgt/utils@9085
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 7 Aug 2010 17:31:57 +0000 (17:31 +0000)]
Ahem. Reset SELDELTA to its original value, not the smaller value to
which I set it for debugging just now.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8978
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 7 Aug 2010 17:30:48 +0000 (17:30 +0000)]
Fix a mishandled error condition when reading from a cut buffer.
This also adds a change of behaviour (resetting nread) in the case
of multi-chunk selection receipt, but I haven't found a way to test
the latter.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8977
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Mar 2010 19:33:45 +0000 (19:33 +0000)]
Add a vital missing paragraph to the man page, and update the header
comment in the script.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8908
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 24 Mar 2010 19:33:22 +0000 (19:33 +0000)]
Fill in a long-missing comment marked as FIXME.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8907
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 27 Apr 2009 21:17:12 +0000 (21:17 +0000)]
Document -v.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8528
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 27 Apr 2009 21:14:03 +0000 (21:14 +0000)]
Verbose mode, for yet more selection-debugging usefulness.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8527
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 28 Feb 2009 23:14:58 +0000 (23:14 +0000)]
Stop using physical tabs in Python. (I was goaded into doing this by
my editor, which has defaulted to showing them as explicit ^I for a
while now, but it seems like a generally prudent idea in any case.)
git-svn-id: svn://svn.tartarus.org/sgt/utils@8485
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 2 Dec 2008 18:15:49 +0000 (18:15 +0000)]
Deal correctly (according to the ICCCM) with receiving None as the
property atom, where permitted.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8369
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 2 Dec 2008 18:15:18 +0000 (18:15 +0000)]
Messages faffing: remove some extraneous \ns, and update the
copyright date since I've done significant work on this this year.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8368
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 23:22:31 +0000 (23:22 +0000)]
The ICCCM says we're required to implement the MULTIPLE selection
target, so let's do so. Implementation is untested, though.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8367
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 23:05:10 +0000 (23:05 +0000)]
Aha! Reading the ICCCM more closely, the return value for the
TIMESTAMP property is required to be the _same_ timestamp passed to
XSetSelectionOwner. That means we can set it to CurrentTime with a
clear conscience.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8366
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 22:52:04 +0000 (22:52 +0000)]
Document -F, and update the bugs list: I'm adopting the working
hypothesis that the restructuring of do_paste() and the improved
error handling I've added this evening will have solved the
failure-to-paste problems. If I find out otherwise, I'll add it
back.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8363
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 22:48:40 +0000 (22:48 +0000)]
Better support for TARGETS and TIMESTAMP in xcopy's own selection
writing. (TIMESTAMP still comes out as zero, though.) Also
introduced the -F option to suppress forking, which is _probably_
only useful for debugging.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8362
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 22:19:00 +0000 (22:19 +0000)]
Turn an assert into a nice error message.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8361
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 22:17:22 +0000 (22:17 +0000)]
Some exciting new X diagnostic options: -t to return a list of
selection targets, -T to return the selection timestamp, and -a to
retrieve a specific target atom in raw data form.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8360
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 1 Dec 2008 19:29:09 +0000 (19:29 +0000)]
Give xcopy an option to talk to the GNOME/KDE-style clipboard as
well as the traditional X selection.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8357
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 30 Oct 2008 19:19:41 +0000 (19:19 +0000)]
Compiling on a different Linux distribution has brought this code
into contact with a compiler picky enough to point out that I called
exit() without including stdlib.h. Surprised nothing's complained
about that one before, actually.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8227
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 8 Sep 2008 18:26:51 +0000 (18:26 +0000)]
Add a "-r" option to lns, which causes it to mirror an entire
directory tree in symlinks by constructing a parallel directory
hierarchy and populating it with symlinks to all the files in the
original one. I've wanted a tool that does that for ages, but never
got round to sitting down and writing it; today I suddenly realised
it's almost trivial to add as an extra option in lns, because nearly
all the required infrastructure is already present.
git-svn-id: svn://svn.tartarus.org/sgt/utils@8171
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 22 Mar 2008 14:18:23 +0000 (14:18 +0000)]
Volker Schatz suggests that a useful improvement to `reservoir -o'
would be to have it refrain from clobbering the output file if there
is no data at all to write to it. Implement this, preserving the
previous simple behaviour under the new name -O.
git-svn-id: svn://svn.tartarus.org/sgt/utils@7936
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 1 Mar 2008 18:11:29 +0000 (18:11 +0000)]
The BSD axis, including MacOS X, have a subtly different form of
ptrace. Support that. Not ideal even so, since BSDish ptrace doesn't
auto-detach on the death of the tracing process (instead it appears
to SIGKILL the traced process); but it's a start.
git-svn-id: svn://svn.tartarus.org/sgt/utils@7909
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 20 Feb 2008 19:46:02 +0000 (19:46 +0000)]
New, rather hacky, Unix utility: `after', to wait for the
termination of an arbitrary process specified by pid.
git-svn-id: svn://svn.tartarus.org/sgt/utils@7863
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 19 Feb 2008 14:58:29 +0000 (14:58 +0000)]
Stop depending on make -C, for the benefit of makes which don't have
it (notably BSDish ones).
git-svn-id: svn://svn.tartarus.org/sgt/utils@7862
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 13 Sep 2007 13:00:37 +0000 (13:00 +0000)]
`lns . subdir' was trying to create a link called `subdir/.',
invariably unsuccessfully. The more useful behaviour, and also more
intuitive IMO, is to have it create `subdir/dirname' where `dirname'
is the name of the last path component of your cwd.
git-svn-id: svn://svn.tartarus.org/sgt/utils@7720
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 24 Feb 2007 13:39:38 +0000 (13:39 +0000)]
Fix obvious evidence of this file having evolved out of a
clone-and-hack from xcopy.c :-)
git-svn-id: svn://svn.tartarus.org/sgt/utils@7317
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 8 Feb 2007 18:39:11 +0000 (18:39 +0000)]
Arrange to build utils using bob.
git-svn-id: svn://svn.tartarus.org/sgt/utils@7252
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 23 Jul 2006 08:32:18 +0000 (08:32 +0000)]
One of my examples was insufficiently covered in `b's.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6771
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 22 Jul 2006 12:36:25 +0000 (12:36 +0000)]
Add another example of why reservoir is useful.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6765
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 22 Jul 2006 12:34:04 +0000 (12:34 +0000)]
Replace the somewhat contrived gcc example with oggenc, which is a
much more sensible thing to want to be doing with `multi -r'. Also
fix a minor typo while I'm here.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6764
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 May 2006 12:09:48 +0000 (12:09 +0000)]
Small patch from Steven Taschuk to work around buggy dbm
implementations which have non-idempotent len() functions, so that
the test `if db' doesn't return the same result every time (!). By
explicitly testing whether db is None rather than returning false if
db is non-None but inexplicably returns zero from len(), we avoid
the problem in favour of the semantics I actually intended.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6715
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 6 Apr 2006 14:35:13 +0000 (14:35 +0000)]
Missing verb.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6627
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Feb 2006 09:13:58 +0000 (09:13 +0000)]
Expanding the SVN keywords would probably help.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6566
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Feb 2006 23:09:06 +0000 (23:09 +0000)]
Phil Bordelon points out that I missed a search-and-replace when I
cribbed this man page from xcopy.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6565
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Feb 2006 18:40:44 +0000 (18:40 +0000)]
Add the ability to cope with SGML entity syntax on cvt-utf8's
command line.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6563
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Feb 2006 18:40:24 +0000 (18:40 +0000)]
New mode for nntpid: `nntpid -a news.group.name' downloads all
available articles in a group and writes them to an mbox. Handy if
you want to search a whole group in ways beyond those supported by
your newsreader.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6562
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Feb 2006 18:37:35 +0000 (18:37 +0000)]
New utility: `beep', which attempts to make a beeping noise by any
means available.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6561
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Feb 2006 16:04:33 +0000 (16:04 +0000)]
Make redundant-slash removal more ubiquitous.
git-svn-id: svn://svn.tartarus.org/sgt/utils@6560
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 13 May 2005 17:49:19 +0000 (17:49 +0000)]
And forgot to expand the Id keyword in the man page. Dear oh dear.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5778
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 13 May 2005 17:47:57 +0000 (17:47 +0000)]
Forgot to add `reservoir' to the top-level Makefile.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5777
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 13 May 2005 17:44:45 +0000 (17:44 +0000)]
This occasionally comes in handy, so I'll add it to utils.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5776
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 1 Mar 2005 11:57:26 +0000 (11:57 +0000)]
Remove trailing space on the #! line, which _ought_ to be harmless
but apparently can cause problems in old versions of Cygwin.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5418
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 15 Feb 2005 10:45:38 +0000 (10:45 +0000)]
Somehow forgot to use $(IPROG) and $(IDATA) in this makefile.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5301
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 14 Jan 2005 19:47:21 +0000 (19:47 +0000)]
<malloc.h> is non-standard, not present on all systems (notably Mac OS X),
and unnecessary anyway. Stop including it.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5110
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 7 Jan 2005 16:15:01 +0000 (16:15 +0000)]
Introduce make targets `progs' and `man', for building the actual
programs and the man pages independently. Also `install-progs' and
`install-man'.
git-svn-id: svn://svn.tartarus.org/sgt/utils@5077
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 8 Dec 2004 15:17:48 +0000 (15:17 +0000)]
The examples section is confusing at the best of times, and really
doesn't need semantically obstructive typos!
git-svn-id: svn://svn.tartarus.org/sgt/utils@4959
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 13:58:29 +0000 (13:58 +0000)]
Another typo.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4882
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 09:25:04 +0000 (09:25 +0000)]
Fix an infinite-loop bug in which we failed to spot / as a prefix of
any pathname! Also improve the verbose diagnostics.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4876
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Nov 2004 09:16:19 +0000 (09:16 +0000)]
Have the install scripts distinguish BINDIR from SCRIPTDIR. Handy
when I do an install at work, where my platform-specific binaries go
in a separate directory.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4875
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 15:38:54 +0000 (15:38 +0000)]
A bit more uniformity in those --help messages wouldn't go amiss.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4874
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 15:30:38 +0000 (15:30 +0000)]
Get rid of `$0' in error messages; it tends to produce the full
path, which is not what I wanted.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4873
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 15:24:25 +0000 (15:24 +0000)]
I don't usually _install_ my own utilities, as such; I tend to just
symlink them into my bin directory. It's just occured to me that by
adding a bit more configurability to the `make install' targets on
utils, I can actually arrange to be able to use `lns -f' as my
install program and have `make install' do that _for_ me! Bonus.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4872
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 14:28:08 +0000 (14:28 +0000)]
Typos. Again.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4871
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 14:25:38 +0000 (14:25 +0000)]
Ooh, and make links to . and .. work properly as well.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4870
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 14:23:42 +0000 (14:23 +0000)]
Bug fixes.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4869
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 14:15:05 +0000 (14:15 +0000)]
My user-friendly symlinking tool `lns' is another thing that really
ought to be in utils. Move it over, write it a manpage, etc.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4868
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 11:05:33 +0000 (11:05 +0000)]
Typo.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4864
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 10:59:32 +0000 (10:59 +0000)]
Implement Ian's suggestion that nntpid should output via $PAGER by
default, partly for convenience and partly as a guard against
disruptive escape sequences in the article. Disabled if its stdout
isn't a terminal, and also explicitly disableable by -d.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4863
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 10:50:49 +0000 (10:50 +0000)]
Mention AUTHINFO GENERIC.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4862
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 10:46:53 +0000 (10:46 +0000)]
It's about time I brought my `nntpid' utility under version control,
and the new `utils' area is just the place for it.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4861
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 10:44:14 +0000 (10:44 +0000)]
Remove spurious (and sometimes harmful) Halibut config directives.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4860
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 21 Nov 2004 09:32:02 +0000 (09:32 +0000)]
Add `make install' targets, and also version IDs on the man pages.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4856
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 13:49:08 +0000 (13:49 +0000)]
Oops; let's leave off `-v' from the tar command line, or my nightly
snapshot cronjob will keep sending me mail.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4848
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 12:12:38 +0000 (12:12 +0000)]
Make `RFC 2045' a hyperlink (now that this .but file builds HTML as
well as man pages).
git-svn-id: svn://svn.tartarus.org/sgt/utils@4846
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 12:05:13 +0000 (12:05 +0000)]
Arrange `make release' targets everywhere, and also `make html'
which produces HTML versions of the man pages (yay Halibut).
git-svn-id: svn://svn.tartarus.org/sgt/utils@4845
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 11:43:53 +0000 (11:43 +0000)]
Ensure all utilities support `--help', `--version' and `--licence',
that `--help' mentions the other two, and that the man page mentions
how to find the licence text.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4844
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 10:50:34 +0000 (10:50 +0000)]
Missed out a highlight.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4843
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 10:41:26 +0000 (10:41 +0000)]
`multi' is also of releasable quality, given a man page. Move it
into `utils' and provide one.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4842
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 09:51:41 +0000 (09:51 +0000)]
Oops; correct the date on the base64 manpage. That's what I get for
cribbing the boilerplate from another one.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4841
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 08:57:33 +0000 (08:57 +0000)]
Add a top-level Makefile, for convenience.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4840
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 08:48:22 +0000 (08:48 +0000)]
Expand the `Revision' keyword. Oops.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4838
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Nov 2004 08:44:10 +0000 (08:44 +0000)]
Move some of my more useful utilities out from my all-purpose
`local' and `misc' directories into a `utils' area, where they might
end up releasable.
git-svn-id: svn://svn.tartarus.org/sgt/utils@4837
cda61777-01e9-0310-a592-
d414129be87e