From owner-freebsd-questions Mon Aug 24 08:26:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA10898 for freebsd-questions-outgoing; Mon, 24 Aug 1998 08:26:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from axl.training.iafrica.com (axl.training.iafrica.com [196.31.1.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA10880 for ; Mon, 24 Aug 1998 08:26:28 -0700 (PDT) (envelope-from sheldonh@axl.training.iafrica.com) Received: from sheldonh (helo=axl.training.iafrica.com) by axl.training.iafrica.com with local-esmtp (Exim 1.92 #1) for freebsd-questions@freebsd.org id 0zAyVQ-0002VU-00; Mon, 24 Aug 1998 17:26:04 +0200 From: Sheldon Hearn To: freebsd-questions@FreeBSD.ORG Subject: patch(1) creates files in working directory Date: Mon, 24 Aug 1998 17:26:04 +0200 Message-ID: <9639.903972364@axl.training.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, I have created diffs that I would like to apply to my ports tree in a batch. The diffs have relative pathnames as follows: diff -urN mail/exim.ORIG/patches/patch-ac mail/exim/patches/patch-ac --- mail/exim.ORIG/patches/patch-ac Thu Jan 1 02:00:00 1970 +++ mail/exim/patches/patch-ac Mon Aug 24 17:00:30 1998 As per the suggestion in the patch(1) manpage, I ran diff against original files that didn't exist (well, the manpage says null files, but I'm assuming it works the same). Hence the weird time on the original files. I then have /usr/ports/makefile do the following for me when I do make patch: cat /root/localmods/ports/*.patch |diff I'm careful to do this with /usr/ports as my working directory. To my dismay, I find the patch-a? and patch-a?.orig files being created in /usr/ports and _not_ the child directories as I expected. Can anyone suggest what I should do to have these files created in the appropriate directories? Thanks, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message