Re: diff/patch (was: Re: HP OfficeJet Pro,R series support announcement)

Jason Kendall (jkendall@execpc.com)
Fri, 05 Nov 1999 21:08:36 -0600

how the heck do I get off this mailing list???????

Dave Hill wrote:

> David Paschal wrote:
>
> > Also, could somebody kindly give me suggestions on the best way to
> > produce
> > and apply a patch to the SANE source tree? I tried a recursive diff,
> > as
> > well as a script that did individual diffs on files I knew were new or
> > changed, but the patch utility seemed to have trouble "patching" files
> > that
> > didn't already exist. For now, my "patch" consists of a .tar.gz file
> > containing the entirety of the new/modified files.
>
> You should use the --new-file option to diff. This tells it that
> if a file is absent, treat it as empty. Patch will then know
> that the file is to be created.
>
> -N --new-file Treat absent files as empty.
>
> The "normal" options to diff are: -u -r --new-file
>
> Regards,
> Dave Hill
>
> --
> Dave Hill, Kempston, Bedford UK dave@minnie.demon.co.uk
> Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com