At 03:44 PM 4/30/98 +0100, James Youngman wrote:
>
>Why not just control the source with a CVS server? CVS can deal with
>changing line-ends etc. You then designate one machine at the server
>and the other as the client.
I have been considering setting up CVS for other reasons. I hesitate to
because: 1) I have no experience with CVS, so I don't how much effort it
will be to setup and administer; 2) my company won't recognize the value of
my spending any time on CVS.
My only prior experience with source control systems was with PVCS and it
was extremely painful to administer and use.
>
> Al> Unless someone can suggest a better approach, I've decided to
> Al> use gzip to zip the entire source code tree and unzip the entire
> Al> tree. Now I just need to recursively process the files in the
> Al> directory tree by converting carriage returns and maintaining
> Al> the last modified date/time.
>
>$ (cd project && make clean)
I wouldn't use "make clean" because it would force me to rebuild the entire
project on the source machine unnecessarily later on.
>$ zip -rl project.zip project
>(You can also use -i to include only some kinds of files in the
>archive).
I was planning on using -i to include which files are zipped :-)
>Or you can use "unzip -a" on the Unix box to unpack the files,
>converting CRLF back to LF only.
Great! I didn't know about the -a option. I thought unzip might support
something like that, but I didn't notice it when I looked through unzip's
command line options the other day. Thanks much, I think that's just what I
need to solve my problem without having to write any conversion programs or
scripts.
>If you cannot use zip/unzip, GNU recode will do in-place CRLF
>translation.
Aah, I didn't know about the recode program either. I see from its
documentation that it maintains the file's time stamp when in-place
recoding is done, which is just what I wanted. I'll definitely add recode
to my toolset for future use.
Thanks for all the information.
Al Margheim
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.