sane-project-website/old-archive/1999-11/0018.html

64 wiersze
2.7 KiB
HTML

<!-- received="Wed Nov 3 21:55:01 1999 PST" -->
<!-- sent="Wed, 03 Nov 1999 09:46:52 +0000" -->
<!-- name="Dave Hill" -->
<!-- email="dave@minnie.demon.co.uk" -->
<!-- subject="Re: diff/patch (was: Re: HP OfficeJet Pro,R series support announcement)" -->
<!-- id="" -->
<!-- inreplyto="diff/patch (was: Re: HP OfficeJet Pro,R series support announcement)" -->
<title>sane-devel: Re: diff/patch (was: Re: HP OfficeJet Pro,R series support announcement)</title>
<h1>Re: diff/patch (was: Re: HP OfficeJet Pro,R series support announcement)</h1>
<b>Dave Hill</b> (<a href="mailto:dave@minnie.demon.co.uk"><i>dave@minnie.demon.co.uk</i></a>)<br>
<i>Wed, 03 Nov 1999 09:46:52 +0000</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#18">[ date ]</a><a href="index.html#18">[ thread ]</a><a href="subject.html#18">[ subject ]</a><a href="author.html#18">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0019.html">Christian Lorenz: "Re: SANE 1.0.1 under DEC UNIX 4.0"</a>
<li> <b>Previous message:</b> <a href="0017.html">Oliver Rauch: "xsane-0.42"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
David Paschal wrote:<br>
<p>
<i>&gt; Also, could somebody kindly give me suggestions on the best way to </i><br>
<i>&gt; produce</i><br>
<i>&gt; and apply a patch to the SANE source tree? I tried a recursive diff, </i><br>
<i>&gt; as</i><br>
<i>&gt; well as a script that did individual diffs on files I knew were new or</i><br>
<i>&gt; changed, but the patch utility seemed to have trouble "patching" files </i><br>
<i>&gt; that</i><br>
<i>&gt; didn't already exist. For now, my "patch" consists of a .tar.gz file</i><br>
<i>&gt; containing the entirety of the new/modified files.</i><br>
<p>
You should use the --new-file option to diff. This tells it that<br>
if a file is absent, treat it as empty. Patch will then know<br>
that the file is to be created.<br>
<p>
-N --new-file Treat absent files as empty.<br>
<p>
The "normal" options to diff are: -u -r --new-file<br>
<p>
Regards,<br>
Dave Hill<br>
<p>
<pre>
--
Dave Hill, Kempston, Bedford UK <a href="mailto:dave@minnie.demon.co.uk">dave@minnie.demon.co.uk</a>
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0019.html">Christian Lorenz: "Re: SANE 1.0.1 under DEC UNIX 4.0"</a>
<li> <b>Previous message:</b> <a href="0017.html">Oliver Rauch: "xsane-0.42"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>