Date: Wed, 25 Sep 1996 09:26:48 +0500 From: A JOSEPH KOSHY <koshy@india.hp.com> To: jhs@freebsd.org Cc: phk@freebsd.org, freebsd-current@freebsd.org Subject: Re: ctm & disc full Message-ID: <199609250426.AA112135608@fakir.india.hp.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609250426.AA112135608>