OSDN Git Service

* gcc.c-torture/execute/920428-2.x: Delete.
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2004-07-07  Matthias Klose  <doko@debian.org>
2
3         * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
4         * Makefile.in: Regenerate.
5
6 2004-07-06  Matthias Klose  <doko@debian.org>
7
8         * Makefile.in: Regenerate.
9         * fastjar.texi: Update for '-u'.
10         
11 2004-05-19  Casey Marshall <csm@gnu.org>
12
13         PR 7854
14         * Makefile.am
15         (jar_SOURCES): added shift.c, shift.h.
16         (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
17
18         * compress.c
19         Added FSF copyright.
20         (write_data): new function.
21         (compress_file): call write_data.
22
23         * jartool.c
24         Updated copyright year.
25         (progname): new variable.
26         (end_of_entries): new variable.
27         (main): open and read file when updating.
28         (find_entry): new function.
29         (looks_like_dir): new function.
30         (read_entries): new function.
31         (make_manifest): added parameter `updating'.
32         Call `add_file_to_jar' with `updating'.
33         (add_to_jar_with_dir): added parameter `updating'.
34         Call `add_to_jar' with `updating'.
35         (add_to_jar): added parameter `updating'.
36         Call `add_file_to_jar' with `updating'.
37         Don't add directories if they already exist.
38         (add_file_to_jar): added parameter `updating'.
39         Update entries if they already exist.
40
41         * jartool.h
42         Added #ifndef __FASTJAR_JARTOOL_H__.
43         (struct zipentry): added `flags'.
44
45         * shift.c: new file.
46
47         * shift.h: new file.
48
49         * zipfile.h
50         (CEN_FLAGS): new constant.
51
52 2004-07-05  Kelley Cook  <kcook@gcc.gnu.org>
53
54         * Makefile.am: Silence two automake warnings.
55         * Makefile.in: Regenerate.
56
57 2004-06-25  Kelley Cook  <kcook@gcc.gnu.org>
58
59         PR other/15194
60         * configure.ac: Add check for long long.
61         * jartool.h: Check for long long before using it.
62         * configure: Regenerate
63         * config.h.in: Regenerate.
64
65 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
66
67         * acinclude.m4: Quote first argument of AC_DEFUNs.
68         * aclocal.m4: Regenerate with automake 1.8.
69         * Makefile.in: Likewise.
70         * configure: Regenerate.
71         * .cvsignore: New file.
72
73 2004-04-12  Kelley Cook  <kcook@gcc.gnu.org>
74
75         PR bootstrap/14905
76         * configure.ac: Parse --enable-generated-files-in-srcdir.
77         * Makefile.am: Copy man and info files to srcdir if requested.
78         * configure: Regenerate.
79         * Makefile.in Regenerate.
80
81 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
82
83         * configure.ac: Bump AC_PREREQ to 2.59.
84         * configure: Regenerate.
85
86 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
87
88         * configure: Regenerate for config/accross.m4 correction.
89
90 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
91
92         * configure.in: Rename file to ...
93         * configure.ac: ... this.  Add in AC_PREREQ(2.57)
94         * config.h.in: Regenerate.
95         * aclocal.m4: Regenerate.
96         * Makefile.in: Regenerate.
97
98 2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>
99
100         * jartool.c (make_manifest): Fix off-by-one bug when creating
101         an empty MANIFEST.MF.
102
103 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
104
105         * Makefile.am: Define AM_MAKINFOFLAGS.  Remove Automake 1.4 hack.
106         * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
107         * aclocal.m4, config.h.in, configure: Likewise.
108         * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
109
110 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
111
112         * .cvsignore: Delete.
113
114 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
115
116         * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
117         to match.
118         (fastjar.info): Update target to write to build directory.
119         (%.1): New implicit rule from a .pod file.
120         (jar.1): Delete.
121         (grepjar.1): Delete.
122         (jar.pod): New intermediate rule.
123         (grepjar.pod): Likewise.
124         * Makefile.in: Regenerate.
125
126 2003-08-13  Matthias Klose  <doko@debian.org>
127
128         * fastjar.texi: License manual under the GPL.
129         * Makefile.am: Remove reference to fdl.texi
130         * Makefile.in: Regenerate
131
132 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
133
134         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
135
136 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
137
138         * README: Note that FastJar is not part of GCC.
139
140 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
141
142         PR java/9532
143         * jartool.c (add_to_jar): Return 1 on failure to open file.
144         Split out -C case to:
145         * jartool.c (add_to_jar_with_dir): New function.
146
147 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
148
149         PR java/9532
150         * jartool.c (main) Give proper error messages with -C, and
151         check for missing arguments properly.  Send error messages
152         to stderr.
153         * jartool.c (add_to_jar): Make getcwd() call portable,
154         and check for error return.
155
156 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
157
158         * fastjar.texi: Remove @ at start of file.
159
160 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
161
162         * dostime.c: add #include <stddef.h> for definition of NULL
163
164 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
165
166         * fastjar.texi: Update to GFDL 1.2.
167
168 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
169
170         * jartool.c (extract_jar): Don't lseek to skip extra fields.
171         (consume): If the stream is seekable, do lseek.
172
173 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
174
175         * jargrep.c: Include xregex.h from libiberty instead of
176         system regex.h for better portability.
177
178 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
179
180         * jartool.c (list_jar): Terminate the 'ascii_date' buffer
181         with a '\0' to guard against the case where the formatted
182         time string is more than the size allowed by the buffer.
183
184 2003-01-14  Tom Tromey  <tromey@redhat.com>
185
186         * config.h.in: Rebuilt.
187
188 2002-12-30  DJ Delorie  <dj@redhat.com>
189
190         * Makefile.am (jar.1, grepjar.1): Protect against
191         texi2pod/pod2man failing.
192         * Makefile.in: Regenerated.
193
194 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
195
196         * fastjar.texi: Include Cover Texts in man page.
197
198 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
199
200         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
201
202 2002-11-23  H.J. Lu <hjl@gnu.org>
203
204         * acinclude.m4: Include ../config/accross.m4.
205         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
206         (gcc_AC_EXAMINE_OBJECT): Removed.
207         (gcc_AC_C_COMPILE_ENDIAN): Removed.
208         * aclocal.m4; Rebuild.
209
210         * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
211         Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
212         * configure: Likewise.
213
214 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
215
216         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
217         "creat" to create extracted files.
218
219 2002-11-11  Tom Tromey  <tromey@redhat.com>
220
221         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
222         compute month.
223         (unix2dostime): Handle years before 1980.  Correctly compute month
224         and day of month.
225
226 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
227
228         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
229         non-NULL.
230
231         * configure.in (AC_CHECK_HEADERS): Add limits.h.
232         * configure, config.h.in: Rebuilt.
233
234 2002-11-07  Tom Tromey  <tromey@redhat.com>
235
236         * dostime.c: Rewrote from scratch.
237         * dostime.h (dostime): Removed.
238
239 2002-10-20  Tom Tromey  <tromey@redhat.com>
240
241         * jartool.c: Use mode 0666 when opening new file.
242
243 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
244
245         * jargrep.c (chk_wrd): Remove unused variable(s).
246         * jartool.c (main, create_central_header, list_jar): Likewise.
247
248 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
249
250         * configure, config.h.in: Rebuilt.
251         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
252
253 2002-09-11  Tom Tromey  <tromey@redhat.com>
254
255         * Makefile.in: Rebuilt.
256         * Makefile.am (TEXINFO_TEX): New macro.
257         (info_TEXINFOS): Likewise.
258         (fastjar_TEXINFOS): Likewise.
259         (man_MANS): Likewise.
260         (EXTRA_DIST): Likewise.
261         (my_makei_flags): Likewise.
262         (fastjar.info): New rule.
263         (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
264         (TEXINFO_TEX): Likewise.
265         (AUTOMAKE_OPTIONS): Added `cygnus'.
266
267 2002-09-11  Matthias Klose  <doko@debian.org>
268
269         * Makefile.am: Revert the previous patch.
270         * Makefile.in: Regenerated.
271
272 2002-09-10  Matthias Klose  <doko@debian.org>
273
274         * fastjar.texi: New.
275         * Makefile.am: Support building info docs and manpages.
276         * Makefile.in: Regenerated.
277         * configure.in: Set gcc_version.
278         * configure: Regenerated.
279         * jargrep.c: Update usage and help strings.
280
281 2002-09-09  Tom Tromey  <tromey@redhat.com>
282
283         * jartool.c (mkdir): Define.
284         * config.h.in: Rebuilt.
285         * aclocal.m4, configure: Rebuilt.
286         * acinclude.m4: New file.  Copied gcc_AC_COMPILE_CHECK_SIZEOF,
287         gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
288         aclocal.m4.
289
290 2002-09-04  Tom Tromey  <tromey@redhat.com>
291
292         From greenrd@hotmail.com:
293         * jartool.c (list_jar): Correctly determine when new `filename'
294         buffer must be allocated.  Fixes PR java/7830.
295
296 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
297
298         * configure.in: Support cross-compiling.
299         * configure: Regenerate.
300         * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
301         (gcc_AC_EXAMINE_OBJECT): New.
302         (fastjar_AC_COMPILE_C_BIGENDIAN): New.
303
304 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
305
306         * jartool.c (expand_options): Handle tar-style argument list with a
307         leading "-".
308
309 2002-02-23  Anthony Green  <green@redhat.com>
310
311         * jartool.c (main): Fix handling of -C.
312
313 2002-01-30  Tom Tromey  <tromey@redhat.com>
314
315         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
316         to init_args.
317
318 2002-01-11  Tom Tromey  <tromey@redhat.com>
319
320         * Makefile.in: Rebuilt.
321         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
322
323 2002-01-09  Tom Tromey  <tromey@redhat.com>
324
325         For PR libgcj/5303:
326         * jargrep.h: Removed RCS keywords.
327         (GVERSION): Removed.
328         * configure, Makefile.in, config.h.in: Rebuilt.
329         * configure.in: Added AM_MAINTAINER_MODE.
330         Don't look for getopt.h.  Use `fastjar' as package name.
331         * Makefile.am (INCLUDES): Look in ../include.
332         (LIBIBERTY): New macro.
333         (jar_LDADD): Use it.
334         (jar_DEPENDENCIES): Likewise.
335         (grepjar_LDADD): Likewise.
336         (grepjar_DEPENDENCIES): Likewise.
337         * jargrep.c: Removed RCS keywords.  Always include getopt.h.
338         (LONG_OPT): New macro.
339         (OPT_HELP): Likewise.
340         (main): Use getopt_long.  Let getopt print invalid argument
341         message.  Handle --help.  Use version().
342         (version): New function.
343         (optarg, optind): Don't declare.
344         (option_vec): New global.
345         (help): New function.
346         (Usage): Updated to GNU standards.
347         * jartool.c: Removed RCS keywords.  Include getopt.h.
348         (LONG_OPT): New macro.
349         (OPT_HELP): Likewise.
350         (options): New global.
351         (help): New function.
352         (usage): Print a single line.
353         (version): New function.
354         (expand_options): New function.
355         (main): Use getopt_long and expand_options.  Fail if `-u'
356         specified.  Changed handling of -f, -m, -V options.
357         (OPTION_STRING): New macro.
358         (version_string): Removed.
359
360 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
361
362         PR bootstrap/5117
363         * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
364         * Makefile.am: Move grepjar to bin_PROGRAMS.
365         * config.h.in: Regenerated.
366         * Makefile.in: Regenerated.
367         * aclocal.m4: Regenerated.
368         * stamp-h.in: Regenerated.
369         * jargrep.c: Eliminate some signed/unsigned and default
370         uninitialized warnings. Use HAVE_STDLIB_H instead of
371         STDC_HEADERS macro.
372         * jartool.c: Likewise.
373         * compress.c: Likewise.
374
375 2001-09-17  Tom Tromey  <tromey@redhat.com>
376
377         For PR java/4295:
378         * aclocal.m4, configure, Makefile.in: Rebuilt.
379         * configure.in: Added AC_EXEEXT.
380
381 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
382
383         * jatool.c (extract_jar): Account for null termination when determining
384         whether to expand "filename".
385
386 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
387
388         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
389         Fixes PR java/3949.
390
391 2001-08-27  Tom Tromey  <tromey@redhat.com>
392
393         * jartool.c (jarfile): Remove length limitation.
394         (main): Use jt_strdup when initializing jarfile.
395
396 2001-07-04  Tom Tromey  <tromey@redhat.com>
397
398         Modified from patch by Julian Hall <jules@acris.co.uk>:
399         * jartool.c (errno): Conditionally declare.
400         (O_BINARY): Conditionally define.
401         (main): Use open, not creat.  Use O_BINARY everywhere.
402         (make_manifest): Use O_BINARY.
403         (add_to_jar): Likewise.
404
405 2001-06-28  Tom Tromey  <tromey@redhat.com>
406
407         * configure: Rebuilt.
408         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
409
410 2001-05-15  Per Bothner  <per@bothner.com>
411
412         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
413
414 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
415
416         * jartool.c (jt_strdup): New function.
417         (get_next_arg): Use jt_strdup instead of strdup.
418
419 2001-01-21  Tom Tromey  <tromey@redhat.com>
420
421         * Makefile.in: Rebuilt.
422         * Makefile.am (bin_PROGRAMS): Remove grepjar.
423         (EXTRA_PROGRAMS): New macro.
424
425 2000-12-28  Robert Lipe <robertl@sco.com>
426
427         * jartool.c (MAXPATHLEN): Provide if not defined.
428
429 2000-12-15  Tom Tromey  <tromey@redhat.com>
430             Kelley Cook <kelleycook@home.com>
431
432         * jargrep.c: Include getopt.h if it exists.
433         (optind): Declare.
434         * configure, config.h: Rebuilt.
435         * configure.in: Check for getopt.h.
436
437 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
438
439         * configure.in (fastjar_warn_cflags): Set when using gcc.
440
441         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
442
443 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
444
445         * compress.c: Include stdlib.h and compress.h.
446         (rcsid): Delete.
447         (report_str_error): Make static.
448         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
449         (hrd_inflate_str): Likewise.
450
451         * compress.h (init_compression, end_compression, init_inflation,
452         end_inflation): Prototype void arguments.
453
454         * dostime.c (rcsid): Delete.
455
456         * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
457         Make functions static.  Cast ctype function argument to `unsigned
458         char'.  Add parens in if-stmts.  Constify.
459         (Usage): Change into a macro.
460         (jargrep): Remove unused parameter.
461
462         * jartool.c: Constify.  Add parens in if-stmts.  Align
463         signed/unsigned char pointers in functions calls using casts.
464         (rcsid): Delete.
465         (list_jar): Fix printf format specifier.
466         (usage): Chop long string into bits.  Reformat.
467
468         * pushback.c (rcsid): Delete.
469
470 2000-12-13  Tom Tromey  <tromey@redhat.com>
471
472         * jartool.c (extract_jar): Use strchr, not index.
473
474 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
475
476         * install-defs.sh: Removed.
477
478 2000-12-10  Robert Lipe <robertlipe@usa.net>
479
480         * jargrep.c (jargrep): Added null statement after case.
481
482 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
483
484         * Makefile: Removed.
485         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
486
487 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
488
489         * Makefile.am: New file.
490         * Makefile.in: Rebuilt.
491         * aclocal.m4: Likewise.
492         * stamp-h.in: Likewise.
493         * config.h.in: Likewise.
494         * configure.in (AM_INIT_AUTOMAKE): Added.
495         (AM_CONFIG_HEADER): Likewise.
496         (AC_CHECK_HEADERS): Check for sys/param.h
497         (AC_CHECK_LIB): Don't check for system's zlib.
498         (AC_CHECK_FUNC): Removed system's zlib function checks.
499         (ZDEPS. ZLIBS, ZINCS): Added.
500         * configure: Rebuilt.
501         * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
502         (init_args, get_next_arg): New function.
503         (use_explicit_list_only, read_names_from_stdin): New global
504         (main): Parse new non standard options 'E' and '@', check and
505         report their usage if necessary. Use init_args and get_next_arg.
506         Fixed indentation.
507         (add_to_jar): Don't read directory content if `use_explicit_list_only'.
508         (usage): Added `-E' and `-@'.
509         * jartool.h (VERSION): Macro removed.
510
511 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
512
513         * fastjar imported from sourceforge.net/projects/fastjar with
514         Bryan Burns' permission. Check `CHANGES' for post import changes.
515         * ChangeLog: Created.
516         * NEWS: Likewise.
517         * mkinstalldirs: Likewise.
518         * COPYING: Likewise.
519         * AUTHORS: Likewise.