From: "Tim Van Holder" To: Subject: RE: CVS question: Export option to preserve dates? Date: Wed, 6 Dec 2000 19:00:06 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <5.0.2.1.0.20001205182955.03482460@pop5.banet.net> Importance: Normal Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id MAA06008 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > I was concerned about doing a make in a sandbox derived from a tree > made with export. Since the "current" (i.e., last checkin) dates are > not stamped on the exported sources, any part of the make that depended Ah I see; I assumed that export would behave like checkout and use the checkin timestamps. > version, etc.). I was just anticipating possible problems. That's never a bad thing. If only more programmers did that... > I took your earlier advice and did a checkout, and that looks just fine > to work with, except for the ubiquitous */cvs/* files. BTW, the > instructions you gave above to strip the */cvs/* files out of a zipped > tree use "zip" and "unzip" commands. Would you please tell me > what/whose version of zip/unzip they are? Aliases for gzip/gunzip, I Actually, no, just plain old InfoZip zip and unzip (like the unzip386.exe on simtelnet). > hope? If not, where can I get a copy? www.freesoftware.com or ftp.freesoftware.com/pub/infozip Basically $ zip -9r foo bar creates a foo.zip file containing the tree below bar, maximum compression. $ zip -d foo.zip */CVS/* deletes all entries matching */CVS/* from the zip file (in bash you may need to add single quotes, as the pattern should be expanded by zip, not by the shell). $ unzip foo.zip simply unzips the lot (resulting in a tree similar to cvs export, but with timestamps intact). Of course, you could just use tar instead; it has similar options. Or you could simply copy the tree (using cp -a), then use find to trim the CVS dirs (find -type d -name CVS |xargs rm -rf). Note that you may want to set the FNCASE envvar to 'y' before you run zip/tar, to ensure files like NEWS or README don't get stored as lowercase. > Thanks for your kind instruction of this humble pupil, Tim. I really > appreciate the clarity and simplicity of your replies. Thanks for the excessive amounts of compliements :-)