Xref: news-dnh.mv.net comp.os.msdos.djgpp:1762 Path: news-dnh.mv.net!mv!news.sprintlink.net!in2.uu.net!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!space.mit.edu!davis From: davis AT space DOT mit DOT edu (John E. Davis) Newsgroups: comp.os.msdos.djgpp Subject: Re: Tar that converts unix to DOS line endings Date: 26 Aug 1995 22:36:55 GMT Organization: Center for Space Research Lines: 37 References: <41o4f3$7lu AT apollo DOT albany DOT net> Reply-To: davis AT space DOT mit DOT edu Nntp-Posting-Host: wiwaxia.mit.edu To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp On 26 Aug 1995 21:41:55 GMT, Skip Egley 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