From owner-freebsd-hackers Mon Sep 2 00:06:46 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA18342 for hackers-outgoing; Mon, 2 Sep 1996 00:06:46 -0700 (PDT) Received: from critter.tfs.com ([140.145.230.252]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA18337; Mon, 2 Sep 1996 00:06:43 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id HAA02113; Mon, 2 Sep 1996 07:44:08 +0200 (MET DST) To: "Philippe Charnier" cc: hackers@freebsd.org Subject: Re: ctm: moving file to Attic In-reply-to: Your message of "Sat, 31 Aug 1996 00:04:34 +0200." <199608302204.AAA18261@xp11.frmug.org> Date: Mon, 02 Sep 1996 07:44:07 +0200 Message-ID: <2111.841643047@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199608302204.AAA18261@xp11.frmug.org>, "Philippe Charnier" writes: >Hello, > >For now, when a file go to the Attic, something like this is run and >the content of the entire file is sent via ctm. (Note that the content >of the file differs a little when going to the Attic): > FR src/usr.bin/locate/locate/updatedb.csh,v > DM src/usr.bin/locate/locate/Attic > FM src/usr.bin/locate/locate/Attic/updatedb.csh,v Well, you might as well make the more general solution. Run through the two trees. Emit Edits for changed files. Emit Mkdirs for new directories. Collect list of new & removed files, removed directories. For all new files in list Try all files in the new & removed lists with the same basename select smallest delta produced if edit smaller than full file emit "Edit with template" else emit "make new file" For all files in the remove list emit "Remove" For all dirs in the remove list emit "Remove" Look at the src/usr.sbin/ctm/mkctm/mkctm.c program, and send me patches :-) -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.