summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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