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