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