From owner-freebsd-current Tue Sep 24 20:55:55 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA16399 for current-outgoing; Tue, 24 Sep 1996 20:55:55 -0700 (PDT) Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA16320; Tue, 24 Sep 1996 20:55:51 -0700 (PDT) Received: from fakir.india.hp.com by relay.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA165883737; Tue, 24 Sep 1996 20:55:41 -0700 Received: from localhost by fakir.india.hp.com with SMTP (1.37.109.16/15.5+ECS 3.3) id AA112135608; Wed, 25 Sep 1996 09:26:48 +0500 Message-Id: <199609250426.AA112135608@fakir.india.hp.com> To: jhs@freebsd.org Cc: phk@freebsd.org, freebsd-current@freebsd.org Subject: Re: ctm & disc full Date: Wed, 25 Sep 1996 09:26:48 +0500 From: A JOSEPH KOSHY Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Julian, There are a couple of new options in -current CTM that may help you: -B filename backups whatever would be modified to `filename' before applying any patches. -l shows what would be touched -e regex specify `include' and `exclude' regexes which you can -x regex use to touch parts of the source tree Something like the following would be helpful cd your-source-directory for i in somewhere/ctm-files*.gz; do ctm -B $i.back -v -v $i # apply CTM patch if [ $? = 0 ]; then # all ok rm -f $i.back else echo "ctm patch $i failed." exit 1 fi done So if you do encounter problems you could Run: ctm -l ctm-file.gz > list-of-files-that-change Then: ctm -e exp -x exp -e exp ... ctm-file.gz to selectively update what got missed out. OR: restore from the backup file and re-apply the Ctm patch. Hope this helps, Koshy