New Code! (refactoring? What’s that? edition)
Savelogs has (silently, due to the s-l-o-w-l-y ongoing sccs/posting replacement project I'm doing now) been upgraded to version 1.5 with the addition of several things, not the least of which was the replacement of the old ARY()/IT()/NR()/GROW() macros that I was using for Pascal-string-style arrays[] with the (now that it's in two packages it must be...) standard STRING() pseudo-template scheme that I've implemented in cstring.h for the knights-who-say-NIH! version of pstree.
There are some other enhancements, too, like
- Per-file backup name and compression options, so you can set the general rule to be to compress everything with SET COMPRESSED, then use the keyword UNCOMPRESSED to turn that off for a logfile that you don't want to have to uncompress to read.
- Numbered backups have the revision number padded out to the # of digits present in the largest possible revision, so if you set a file to have 10 backups, the backups will be named 00,01,02,...,09,10. A nasty bitter little mind might point out that 0 to 10 is actually eleven backups, and, um, they're right. I'll leave that bug in to encourage me to produce a version 1.6.
- Somewhat tidier trace output for -d.
- And aliases for DOTS (DOT, DOTTED) and NUMBERS (NUMBER,NUMBERED) to make the language a little less fussy about syntax.
Surprisingly, it still appears to make logfile backups without dumping core. At least it does for me. So it's New Code! for the daring.