Mail Archives: djgpp-workers/1996/07/21/11:53:02
On Sun, 21 Jul 1996, DJ Delorie wrote:
> I build the zips under dos, or under linux from a dos 8.3 filesystem.
> Aside from fixing up the makefiles etc to expect 8.3 truncated names,
> there's not much I can do to lfn the zip files.
Well, I've found this to be simpler than it seems. I also build the zips
under native MSDOS, with no LFN support whatsoever. However, Zip 2.01
will actually record the original long filename in the exact lettercase as
you submit it. There are only two problems with this approach:
- you cannot use wildcards or just the directory names, you need to
feed Zip with the full list of the filenames;
- filenames that are illegal on MSDOS cannot be used.
The first problem is taken care of if you use a response file. I prepare
the response file by editing the contents of the original .tar.gz
distribution as listed by DJTAR, then add DJGPP-specific files (which are
usually just a few).
The second problem doesn't have any solution, because I know of no unzip
program that can rename the illegal names in the same way DJTAR does, and
Zip won't allow you to put such names in the archive anyway.
So I suggest to put the long filenames into the zips, and leave the
illegal names in their DOS format (people who use Win95 will have to
rename them manually). This should take us a large step towards being
LFN-clean (IMHO).
- Raw text -