sgt/utils
19 years ago<malloc.h> is non-standard, not present on all systems (notably Mac OS X),
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

19 years agoIntroduce make targets `progs' and `man', for building the actual
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

19 years agoThe examples section is confusing at the best of times, and really
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

19 years agoAnother typo.
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

19 years agoFix an infinite-loop bug in which we failed to spot / as a prefix of
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

19 years agoHave the install scripts distinguish BINDIR from SCRIPTDIR. Handy
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

19 years agoA bit more uniformity in those --help messages wouldn't go amiss.
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

19 years agoGet rid of `$0' in error messages; it tends to produce the full
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

19 years agoI don't usually _install_ my own utilities, as such; I tend to just
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

19 years agoTypos. Again.
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

19 years agoOoh, and make links to . and .. work properly as well.
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

19 years agoBug fixes.
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

19 years agoMy user-friendly symlinking tool `lns' is another thing that really
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

19 years agoTypo.
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

19 years agoImplement Ian's suggestion that nntpid should output via $PAGER by
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

19 years agoMention AUTHINFO GENERIC.
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

19 years agoIt's about time I brought my `nntpid' utility under version control,
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

19 years agoRemove spurious (and sometimes harmful) Halibut config directives.
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

19 years agoAdd `make install' targets, and also version IDs on the man pages.
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

19 years agoOops; let's leave off `-v' from the tar command line, or my nightly
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

19 years agoMake `RFC 2045' a hyperlink (now that this .but file builds HTML as
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

19 years agoArrange `make release' targets everywhere, and also `make html'
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

19 years agoEnsure all utilities support `--help', `--version' and `--licence',
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

19 years agoMissed out a highlight.
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

19 years ago`multi' is also of releasable quality, given a man page. Move it
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

19 years agoOops; correct the date on the base64 manpage. That's what I get for
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

19 years agoAdd a top-level Makefile, for convenience.
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

19 years agoExpand the `Revision' keyword. Oops.
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

19 years agoMove some of my more useful utilities out from my all-purpose
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