Mail Archives: djgpp/1995/08/26/21:14:26
On 26 Aug 1995 21:41:55 GMT, Skip Egley <egley AT albany DOT net> wrote:
: Can anyone recommend a good tar executable for DOS. I have tried a couple of them
: and they do not convert the CR to CR/LF or whatever it is that DOS wants. I had to
: write a program to do it myself, but it's a pain to do it when there's lots of
: files. It would be nice for tar to do it automatically - isn't there one out there
: like that?
I frequently move both binary and text files back and forth between Unix,
VMS, and MSDOS systems. To facilitate this, I wrote my own program to
archive/dearchive multiple files. The resulting archive contains
information such as whether or not a file is binary as well as a 16 bit
checksum. When dearchived, the files are created in the correct mode.
The nice thing about this program is that it requires a list of files to
archive. I say that this is a nice thing because I can specify exactly what
to archive.
As an example, consider the list file, jed.lis which may look like:
.
@lib/site.sl
@jed.lis
*bin/msshell.pif
@src/makefile.dos
.
Lines that begin with a `@' denote text files and lines that begin with a
`*' are binary. Any other line is regarded as a comment. The pathnames
are specified as unix pathnames regardless of whether or not I am archiving
files on Unix or not.
If there is any interest, I will post the source. It is only about 500
lines and should compile on almost any system. It's not tar but it meets my
needs.
--John
- Raw text -