1 Tue Sep 15 00:36:15 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
3 * patchlevel.h: PATCHLEVEL 12u8.
5 Mon Sep 14 22:01:23 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
7 * Makefile.SH: Add uninstall target. Simplify install target.
9 * util.c (fatal, pfatal): Add some asterisks to make fatal
10 messages stand out more.
12 Tue Aug 25 22:13:36 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
14 * patch.c (main, get_some_switches), common.h, inp.c (plan_a,
15 plan_b), pch.c (there_is_another_aptch): Add -t option,
18 Mon Jul 27 11:27:07 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
20 * inp.c (plan_a, util.c (fetchname): Use a macro to simplify code.
21 * common.h: Define SCCSDIFF and RCSDIFF.
22 * inp.c (plan_a): Use them to make sure it's safe to check out
23 the default RCS or SCCS version.
26 Wed Jul 22 14:37:08 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
28 * patch.man: Use the standard comment syntax -- '\" -- instead
31 Tue Jul 21 15:26:01 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
33 * Configure: Add /etc /usr/lib /lib to pth.
35 Mon Jul 20 14:10:32 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
37 * util.h: Declare basename.
38 * inp.c (plan_a), util.c (fetchname): Use it to isolate the
39 leading path when testing for RCS and SCCS files.
41 Sat Jul 11 18:03:26 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
43 * Configure: Use the user's PATH and build pth from it.
45 Fri Jul 10 16:03:23 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
47 * Configure: Change cc -S to cc -c and tr '[ - ]' '[\012-\012]'
48 to tr ' ' '\012' for AIX 3.2.
49 From chip@tct.com (Chip Salzenberg).
51 * util.c (makedirs): Only make the directories that don't exist.
52 From chip@tct.com (Chip Salzenberg).
54 Wed Jul 8 01:21:15 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
56 * util.c (fatal, pfatal): Print "patch: " before message.
57 * pch.c, inp.c, patch.c, util.c: Remove "patch: " from the
60 * util.c (pfatal): New function.
61 * util.h: Declare it and pfatal[1-4] macros.
62 * various files: Use it instead of fatal where appropriate.
64 * Configure: Make /usr/local/man/man1 the first choice for the
67 * patch.c (main): Open ofp after checking for ed script.
68 Close ofp and rejfp before trying plan B.
69 From epang@sfu.ca (Eugene Pang).
71 * backupfile.h: Declare get_version.
73 * Move decls of rindex and popen to common.h.
75 * common.h (myuid): New variable.
76 * patch.c (main): Initialize it.
77 * inp.c (myuid): Function removed.
78 (plan_a): Use the variable, not the function.
80 * patch.c: Reinstate -E option.
82 Tue Jul 7 23:19:28 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
84 * inp.c (myuid): New function.
85 (plan_a): Call it. Optimize stat calls. Be smarter about
86 detecting checked out RCS and SCCS files.
87 From Paul Eggert (eggert@twinsun.com).
89 * inp.c, util.c, patch.c: Don't bother checking for stat() > 0.
91 Mon Jul 6 13:01:52 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
93 * version.c (version): Don't print the RCS stuff, since we're
94 not updating it regularly.
96 * patch.c (get_some_switches): Make the usage message more accurate.
98 * patchlevel.h: PATCHLEVEL 12u7.
100 * Makefile.SH (dist): New target.
101 Makedist: File removed.
103 * inp.c (plan_a): Check whether the user can write to the
104 file, not whether anyone can write to the file.
106 Sat Jul 4 00:06:58 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
108 * inp.c (plan_a): Try to check out read-only files from RCS or SCCS.
110 * util.c (move_file): If backing up by linking fails, try copying.
111 From cek@sdc.boeing.com (Conrad Kimball).
113 * patch.c (get_some_switches): Eliminate -E option; always
114 remove empty output files.
116 * util.c (fetchname): Only undo slash removal for relative
117 paths if -p was not given.
119 * Makefile.sh: Add mostlyclean target.
121 Fri Jul 3 23:48:14 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
123 * util.c (fetchname): Accept whitespace between `Index:' and filename.
124 Also plug a small memory leak for diffs against /dev/null.
125 From eggert@twinsun.com (Paul Eggert).
127 * common.h: Don't define TRUE and FALSE if already defined.
128 From phk@data.fls.dk (Poul-Henning Kamp).
130 Wed Apr 29 10:19:33 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu)
132 * backupfile.c (get_version): Exit if given a bad backup type.
134 Fri Mar 27 09:57:14 1992 Karl Berry (karl at hayley)
136 * common.h (S_ISDIR, S_ISREG): define these.
137 * inp.c (plan_a): use S_ISREG, not S_IFREG.
138 * util.c (fetchname): use S_ISDIR, not S_IFDIR.
140 Mon Mar 16 14:10:42 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
142 * patchlevel.h: PATCHLEVEL 12u6.
144 Sat Mar 14 13:13:29 1992 David J. MacKenzie (djm at frob.eng.umd.edu)
146 * Configure, config.h.SH: Check for directory header and unistd.h.
148 * patch.c (main): If -E was given and output file is empty after
150 (get_some_switches): Recognize -E option.
152 * patch.c (copy_till): Make garbled output an error, not a warning
153 that doesn't change the exit status.
155 * common.h: Protect against system declarations of malloc and realloc.
157 * Makedist: Add backupfile.[ch].
159 * Configure: Look for C library where NeXT and SVR4 put it.
160 Look in /usr/ucb after /bin and /usr/bin for utilities,
161 and look in /usr/ccs/bin, to make SVR4 happier.
162 Recognize m68k predefine.
164 * util.c (fetchname): Test of stat return value was backward.
165 From csss@scheme.cs.ubc.ca.
167 * version.c (version): Exit with status 0, not 1.
169 * Makefile.SH: Add backupfile.[cho].
170 * patch.c (main): Initialize backup file generation.
171 (get_some_switches): Add -V option.
172 * common.h, util,c, patch.c: Replace origext with simple_backup_suffix.
173 * util.c (move_file): Use find_backup_file_name.
175 Tue Dec 3 11:27:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
177 * patchlevel.h: PATCHLEVEL 12u5.
179 * Makefile.SH: Change clean, distclean, and realclean targets a
180 little so they agree with the GNU coding standards.
181 Add Makefile to addedbyconf, so distclean removes it.
183 * Configure: Recognize Domain/OS C library in /lib/libc.
184 From mmuegel@mot.com (Michael S. Muegel).
186 * pch.c: Fixes from Wayne Davison:
187 Patch now accepts no-context context diffs that are
188 specified with an assumed one line hunk (e.g. "*** 10 ****").
189 Fixed a bug in both context and unified diff processing that would
190 put a zero-context hunk in the wrong place (one line too soon).
191 Fixed a minor problem with p_max in unified diffs where it would
192 set p_max to hunkmax unnecessarily (the only adverse effect was to
193 not supply empty lines at eof by assuming they were truncated).
195 Tue Jul 2 03:25:51 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
197 * Configure: Check for signal declaration in
198 /usr/include/sys/signal.h as well as /usr/include/signal.h.
200 * Configure, common.h, config.h.SH: Comment out the sprintf
201 declaration and tests to determine its return value type. It
202 conflicts with ANSI C systems' prototypes in stdio.h and the
203 return value of sprintf is never used anyway -- it's always cast
206 Thu Jun 27 13:05:32 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
208 * patchlevel.h: PATCHLEVEL 12u4.
210 Thu Feb 21 15:18:14 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
212 * pch.c (another_hunk): Fix off by 1 error. From
213 iverson@xstor.com (Tim Iverson).
215 Sun Jan 20 20:18:58 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
217 * Makefile.SH (all): Don't make a dummy `all' file.
219 * patchlevel.h: PATCHLEVEL 12u3.
221 * patch.c (nextarg): New function.
222 (get_some_switches): Use it, to prevent dereferencing a null
223 pointer if an option that takes an arg is not given one (is last
224 on the command line). From Paul Eggert.
226 * pch.c (another_hunk): Fix from Wayne Davison to recognize
227 single-line hunks in unified diffs (with a single line number
230 * inp.c (rev_in_string): Don't use `s' before defining it. From
233 Mon Jan 7 06:25:11 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
235 * patchlevel.h: PATCHLEVEL 12u2.
237 * pch.c (intuit_diff_type): Recognize `+++' in diff headers, for
238 unified diff format. From unidiff patch 1.
240 Mon Dec 3 00:14:25 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
242 * patch.c (get_some_switches): Make the usage message more
245 Sun Dec 2 23:20:18 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
247 * Configure: When checking for C preprocessor, look for 'abc.*xyz'
248 instead of 'abc.xyz', so ANSI C preprocessors work.
250 * Apply fix for -D from ksb@mentor.cc.purdue.edu (Kevin Braunsdorf).
252 * Apply unidiff patches from davison@dri.com (Wayne Davison).
254 Wed Mar 7 23:47:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
256 * pch.c: Call malformed instead of goto malformed
257 (just allows easier debugging).
259 Tue Jan 23 21:27:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
261 * common.h (TMP*NAME): Make these char *, not char [].
262 patch.c (main): Use TMPDIR (if present) to set TMP*NAME.
263 common.h: Declare getenv.
265 Sun Dec 17 17:29:48 1989 Jim Kingdon (kingdon at hobbes.ai.mit.edu)
267 * patch.c (reverse_flag_specified): New variable.
268 (get_some_switches, reinitialize_almost_everything): Use it.
273 version-control: never