Are there versions of nulu, squeeze, crunch etc that are capable of
running on unix/Linux? It would be very convenient to do some archive/dearchive work on a modern system then copy to the CP/M machine.
> Are there versions of nulu, squeeze, crunch etc that are capable of
> running on unix/Linux? It would be very convenient to do some
> archive/dearchive work on a modern system then copy to the CP/M machine.
A few:
arc - https://github.com/ani6al/arc
unar - https://theunarchiver.com/command-line
Plan B, run MS-DOS utilities under DOSBOX or similar. DOSBOX can treat
a host directory as a DOS disk volume, making interchange easy. There
are tools similar to DOSBOX for running CP/M tools from a unix command
line that might serve for directly running the CP/M archivers, but I
haven't explored the host filesystem support there.
De
Are there versions of nulu, squeeze, crunch etc that are capable of
running on unix/Linux? It would be very convenient to do some archive/dearchive work on a modern system then copy to the CP/M
machine.
There are a number of other programs that will compile and run under LINUX:
Carson Wilson's cfx13.zip
Lawrence Sonderling <lsonderling@gmail.com> wrote:
There are a number of other programs that will compile and run under LINUX: >>
Carson Wilson's cfx13.zip
It looks like CFX was meant to compile on Unix of some sort as well as
DOS, but unless I'm doing something wrong, the contents of cfx13.zip
don't seem to compile on Linux. Even if you avoid using the Makefile
entirely there are still errors.
The zip I tried was http://www.z80.eu/downloads/cfx13.zip .
Russell Marks <zgedneil@spam^H^H^H^Hgmail.com> wrote:My mlbr utility https://github.com/ogdenpm/mlbr builds under linux gcc -o mlbr *.c
Lawrence Sonderling <lsond...@gmail.com> wrote:
There are a number of other programs that will compile and run under LINUX:
Carson Wilson's cfx13.zip
It looks like CFX was meant to compile on Unix of some sort as well as DOS, but unless I'm doing something wrong, the contents of cfx13.zip
don't seem to compile on Linux. Even if you avoid using the Makefile entirely there are still errors.
The zip I tried was http://www.z80.eu/downloads/cfx13.zip .Aha - the Unix side seems to have been broken after 1.1. The source to
1.1 still seems to be available e.g. here:
http://www.museodelcomputer.org/parts/commodore/1541/docs/devil/pub/archivers/cfx11src.zip
Presumably the relevant parts like unixfunc.c could be reincorporated
to get 1.3 compiling again, but I'm not volunteering. :-)
-Rus.
My mlbr utility https://github.com/ogdenpm/mlbr builds under linux
Mark Ogden <ogd...@gmail.com> wrote:Russell
My mlbr utility https://github.com/ogdenpm/mlbr builds under linuxSpeaking of mlbr, would you mind clarifying the licence? The closest
thing I can find (aside from miniz.h and uncrunch.c) is that "This is
an open source non-commercial project".
Also, what do you consider the licence to be on the original lzhuf.c?
I went to some effort to clarify this before adapting it for lbrate,
and I'd be interested in your perspective.
Finally, I found the most curious thing. This code from mlbr's
uncrunch.c (which I'm assuming it's reasonable to post in order to
comment on it):
if (pred == IMPRED && chr == 0) {
hashval = 0x800; /* special case (leaving the zero code free for EOF) */
} else {
/* normally we do a slightly awkward mid-square thing */
uint16_t a = (((pred + chr) | 0x800) & 0x1fff);
uint16_t b = (a >> 1);
hashval = (((b * (b + (a & 1))) >> 4) & 0xfff);
}
...seems to have remarkably similar comments to this code I wrote in
2001 for lbrate's readlzw.c:
if(oldcode==0xffff && chr==0)
hashval=0x800; /* special case (leaving the zero code free for EOF) */
else
{
/* normally we do a slightly awkward mid-square thing */ a=(((oldcode+chr)|0x800)&0x1fff);
b=(a>>1);
hashval=(((b*(b+(a&1)))>>4)&0xfff);
}
I also notice that most of an older version's "slightly odd approach" comment at line 109 here:
https://github.com/ogdenpm/mlbr/blob/35cf3093a4e7b39c70383c1b085391ca7cc62aec/uncrunch.c
...was in lbrate many years earlier, with the same "If" typo.
So I'd be interested in your thoughts on this as well.
-Rus.
It is plausible that the code you noted came from lbrate. Whilst
refactoring the original code, it looks like I used your
implementation of the hash algorithm. I will make sure that the
copyright notice at the top of the code is updated to include your
name. My apologies for the oversight. If you are not ok with this let
me know.
As to the general licencing position, I would suggest that as a whole,
an open source non-commercial licence is sensible and inline with my
original intent.
Are there versions of nulu, squeeze, crunch etc that are capable of running on unix/Linux? It would be very convenient to do some archive/dearchive work on a modern system then copy to the CP/M machine.Why not zip on PC, and use AGN (Tony Nicholson)'s unzip on CP/M . He keeps it bug fixed and updated. Can unzip Windows default zip compression. He is on Github.?
-Bob
Why not zip on PC, and use AGN (Tony Nicholson)'s unzip on CP/M . He keeps it bug fixed and updated. Can unzip Windows default zip compression. He is on Github.?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 105:47:37 |
Calls: | 9,684 |
Calls today: | 5 |
Files: | 13,725 |
Messages: | 6,175,398 |
Posted today: | 1 |