OSDN Git Service

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