1 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
3 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
4 * configure, aclocal.m4, Makefile.in: Regenerate.
6 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
8 * Makefile.am: Remove -no-dependencies.
9 * Makefile.in: Regenerate.
11 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
13 * Makefile.am: Define ACLOCAL_AMFLAGS.
14 * acinclude.m4: Remove unnecessary sinclude.
15 * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
17 2004-09-23 Tom Tromey <tromey@redhat.com>
19 * jartool.c (extract_jar): Unconditionally read extra data in the
20 entry header; don't read it after the file contents.
22 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
25 * Makefile.am: Force fastjar.info to be built in build directory.
26 * Makefile.in: Regenerate.
28 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
30 * Makefile.am: Rename jar binary to fastjar.
31 * Makefile.in: Regenerate.
32 * fastjar.texi: Rename references to jar binary with fastjar.
34 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
36 * jartool.c (main): Ensure that only one of ftruncate and _chsize
39 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
42 * configure.ac: Check for ftruncate() and _chsize().
43 * jartool.c (main): Use _chsize if ftruncate not available.
44 * configure, config.h.in: Rebuilt.
46 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
48 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
50 2004-07-07 Matthias Klose <doko@debian.org>
52 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
53 * Makefile.in: Regenerate.
55 2004-07-06 Matthias Klose <doko@debian.org>
57 * Makefile.in: Regenerate.
58 * fastjar.texi: Update for '-u'.
60 2004-07-06 Casey Marshall <csm@gnu.org>
64 (jar_SOURCES): added shift.c, shift.h.
65 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
69 (write_data): new function.
70 (compress_file): call write_data.
73 Updated copyright year.
74 (progname): new variable.
75 (end_of_entries): new variable.
76 (main): open and read file when updating.
77 (find_entry): new function.
78 (looks_like_dir): new function.
79 (read_entries): new function.
80 (make_manifest): added parameter `updating'.
81 Call `add_file_to_jar' with `updating'.
82 (add_to_jar_with_dir): added parameter `updating'.
83 Call `add_to_jar' with `updating'.
84 (add_to_jar): added parameter `updating'.
85 Call `add_file_to_jar' with `updating'.
86 Don't add directories if they already exist.
87 (add_file_to_jar): added parameter `updating'.
88 Update entries if they already exist.
91 Added #ifndef __FASTJAR_JARTOOL_H__.
92 (struct zipentry): added `flags'.
99 (CEN_FLAGS): new constant.
101 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
103 * Makefile.am: Silence two automake warnings.
104 * Makefile.in: Regenerate.
106 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
109 * configure.ac: Add check for long long.
110 * jartool.h: Check for long long before using it.
111 * configure: Regenerate
112 * config.h.in: Regenerate.
114 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
116 * acinclude.m4: Quote first argument of AC_DEFUNs.
117 * aclocal.m4: Regenerate with automake 1.8.
118 * Makefile.in: Likewise.
119 * configure: Regenerate.
120 * .cvsignore: New file.
122 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
125 * configure.ac: Parse --enable-generated-files-in-srcdir.
126 * Makefile.am: Copy man and info files to srcdir if requested.
127 * configure: Regenerate.
128 * Makefile.in Regenerate.
130 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
132 * configure.ac: Bump AC_PREREQ to 2.59.
133 * configure: Regenerate.
135 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
137 * configure: Regenerate for config/accross.m4 correction.
139 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
141 * configure.in: Rename file to ...
142 * configure.ac: ... this. Add in AC_PREREQ(2.57)
143 * config.h.in: Regenerate.
144 * aclocal.m4: Regenerate.
145 * Makefile.in: Regenerate.
147 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
149 * jartool.c (make_manifest): Fix off-by-one bug when creating
150 an empty MANIFEST.MF.
152 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
154 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
155 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
156 * aclocal.m4, config.h.in, configure: Likewise.
157 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
159 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
161 * .cvsignore: Delete.
163 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
165 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
167 (fastjar.info): Update target to write to build directory.
168 (%.1): New implicit rule from a .pod file.
171 (jar.pod): New intermediate rule.
172 (grepjar.pod): Likewise.
173 * Makefile.in: Regenerate.
175 2003-08-13 Matthias Klose <doko@debian.org>
177 * fastjar.texi: License manual under the GPL.
178 * Makefile.am: Remove reference to fdl.texi
179 * Makefile.in: Regenerate
181 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
183 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
185 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
187 * README: Note that FastJar is not part of GCC.
189 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
192 * jartool.c (add_to_jar): Return 1 on failure to open file.
193 Split out -C case to:
194 * jartool.c (add_to_jar_with_dir): New function.
196 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
199 * jartool.c (main) Give proper error messages with -C, and
200 check for missing arguments properly. Send error messages
202 * jartool.c (add_to_jar): Make getcwd() call portable,
203 and check for error return.
205 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
207 * fastjar.texi: Remove @ at start of file.
209 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
211 * dostime.c: add #include <stddef.h> for definition of NULL
213 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
215 * fastjar.texi: Update to GFDL 1.2.
217 2003-01-31 Daiki Ueno <ueno@unixuser.org>
219 * jartool.c (extract_jar): Don't lseek to skip extra fields.
220 (consume): If the stream is seekable, do lseek.
222 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
224 * jargrep.c: Include xregex.h from libiberty instead of
225 system regex.h for better portability.
227 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
229 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
230 with a '\0' to guard against the case where the formatted
231 time string is more than the size allowed by the buffer.
233 2003-01-14 Tom Tromey <tromey@redhat.com>
235 * config.h.in: Rebuilt.
237 2002-12-30 DJ Delorie <dj@redhat.com>
239 * Makefile.am (jar.1, grepjar.1): Protect against
240 texi2pod/pod2man failing.
241 * Makefile.in: Regenerated.
243 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
245 * fastjar.texi: Include Cover Texts in man page.
247 2002-12-04 Jakub Jelinek <jakub@redhat.com>
249 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
251 2002-11-23 H.J. Lu <hjl@gnu.org>
253 * acinclude.m4: Include ../config/accross.m4.
254 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
255 (gcc_AC_EXAMINE_OBJECT): Removed.
256 (gcc_AC_C_COMPILE_ENDIAN): Removed.
257 * aclocal.m4; Rebuild.
259 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
260 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
261 * configure: Likewise.
263 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
265 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
266 "creat" to create extracted files.
268 2002-11-11 Tom Tromey <tromey@redhat.com>
270 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
272 (unix2dostime): Handle years before 1980. Correctly compute month
275 2002-11-10 Jakub Jelinek <jakub@redhat.com>
277 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
280 * configure.in (AC_CHECK_HEADERS): Add limits.h.
281 * configure, config.h.in: Rebuilt.
283 2002-11-07 Tom Tromey <tromey@redhat.com>
285 * dostime.c: Rewrote from scratch.
286 * dostime.h (dostime): Removed.
288 2002-10-20 Tom Tromey <tromey@redhat.com>
290 * jartool.c: Use mode 0666 when opening new file.
292 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
294 * jargrep.c (chk_wrd): Remove unused variable(s).
295 * jartool.c (main, create_central_header, list_jar): Likewise.
297 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
299 * configure, config.h.in: Rebuilt.
300 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
302 2002-09-11 Tom Tromey <tromey@redhat.com>
304 * Makefile.in: Rebuilt.
305 * Makefile.am (TEXINFO_TEX): New macro.
306 (info_TEXINFOS): Likewise.
307 (fastjar_TEXINFOS): Likewise.
308 (man_MANS): Likewise.
309 (EXTRA_DIST): Likewise.
310 (my_makei_flags): Likewise.
311 (fastjar.info): New rule.
312 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
313 (TEXINFO_TEX): Likewise.
314 (AUTOMAKE_OPTIONS): Added `cygnus'.
316 2002-09-11 Matthias Klose <doko@debian.org>
318 * Makefile.am: Revert the previous patch.
319 * Makefile.in: Regenerated.
321 2002-09-10 Matthias Klose <doko@debian.org>
324 * Makefile.am: Support building info docs and manpages.
325 * Makefile.in: Regenerated.
326 * configure.in: Set gcc_version.
327 * configure: Regenerated.
328 * jargrep.c: Update usage and help strings.
330 2002-09-09 Tom Tromey <tromey@redhat.com>
332 * jartool.c (mkdir): Define.
333 * config.h.in: Rebuilt.
334 * aclocal.m4, configure: Rebuilt.
335 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
336 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
339 2002-09-04 Tom Tromey <tromey@redhat.com>
341 From greenrd@hotmail.com:
342 * jartool.c (list_jar): Correctly determine when new `filename'
343 buffer must be allocated. Fixes PR java/7830.
345 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
347 * configure.in: Support cross-compiling.
348 * configure: Regenerate.
349 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
350 (gcc_AC_EXAMINE_OBJECT): New.
351 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
353 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
355 * jartool.c (expand_options): Handle tar-style argument list with a
358 2002-02-23 Anthony Green <green@redhat.com>
360 * jartool.c (main): Fix handling of -C.
362 2002-01-30 Tom Tromey <tromey@redhat.com>
364 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
367 2002-01-11 Tom Tromey <tromey@redhat.com>
369 * Makefile.in: Rebuilt.
370 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
372 2002-01-09 Tom Tromey <tromey@redhat.com>
375 * jargrep.h: Removed RCS keywords.
377 * configure, Makefile.in, config.h.in: Rebuilt.
378 * configure.in: Added AM_MAINTAINER_MODE.
379 Don't look for getopt.h. Use `fastjar' as package name.
380 * Makefile.am (INCLUDES): Look in ../include.
381 (LIBIBERTY): New macro.
383 (jar_DEPENDENCIES): Likewise.
384 (grepjar_LDADD): Likewise.
385 (grepjar_DEPENDENCIES): Likewise.
386 * jargrep.c: Removed RCS keywords. Always include getopt.h.
387 (LONG_OPT): New macro.
388 (OPT_HELP): Likewise.
389 (main): Use getopt_long. Let getopt print invalid argument
390 message. Handle --help. Use version().
391 (version): New function.
392 (optarg, optind): Don't declare.
393 (option_vec): New global.
394 (help): New function.
395 (Usage): Updated to GNU standards.
396 * jartool.c: Removed RCS keywords. Include getopt.h.
397 (LONG_OPT): New macro.
398 (OPT_HELP): Likewise.
399 (options): New global.
400 (help): New function.
401 (usage): Print a single line.
402 (version): New function.
403 (expand_options): New function.
404 (main): Use getopt_long and expand_options. Fail if `-u'
405 specified. Changed handling of -f, -m, -V options.
406 (OPTION_STRING): New macro.
407 (version_string): Removed.
409 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
412 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
413 * Makefile.am: Move grepjar to bin_PROGRAMS.
414 * config.h.in: Regenerated.
415 * Makefile.in: Regenerated.
416 * aclocal.m4: Regenerated.
417 * stamp-h.in: Regenerated.
418 * jargrep.c: Eliminate some signed/unsigned and default
419 uninitialized warnings. Use HAVE_STDLIB_H instead of
421 * jartool.c: Likewise.
422 * compress.c: Likewise.
424 2001-09-17 Tom Tromey <tromey@redhat.com>
427 * aclocal.m4, configure, Makefile.in: Rebuilt.
428 * configure.in: Added AC_EXEEXT.
430 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
432 * jatool.c (extract_jar): Account for null termination when determining
433 whether to expand "filename".
435 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
437 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
440 2001-08-27 Tom Tromey <tromey@redhat.com>
442 * jartool.c (jarfile): Remove length limitation.
443 (main): Use jt_strdup when initializing jarfile.
445 2001-07-04 Tom Tromey <tromey@redhat.com>
447 Modified from patch by Julian Hall <jules@acris.co.uk>:
448 * jartool.c (errno): Conditionally declare.
449 (O_BINARY): Conditionally define.
450 (main): Use open, not creat. Use O_BINARY everywhere.
451 (make_manifest): Use O_BINARY.
452 (add_to_jar): Likewise.
454 2001-06-28 Tom Tromey <tromey@redhat.com>
456 * configure: Rebuilt.
457 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
459 2001-05-15 Per Bothner <per@bothner.com>
461 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
463 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
465 * jartool.c (jt_strdup): New function.
466 (get_next_arg): Use jt_strdup instead of strdup.
468 2001-01-21 Tom Tromey <tromey@redhat.com>
470 * Makefile.in: Rebuilt.
471 * Makefile.am (bin_PROGRAMS): Remove grepjar.
472 (EXTRA_PROGRAMS): New macro.
474 2000-12-28 Robert Lipe <robertl@sco.com>
476 * jartool.c (MAXPATHLEN): Provide if not defined.
478 2000-12-15 Tom Tromey <tromey@redhat.com>
479 Kelley Cook <kelleycook@home.com>
481 * jargrep.c: Include getopt.h if it exists.
483 * configure, config.h: Rebuilt.
484 * configure.in: Check for getopt.h.
486 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
488 * configure.in (fastjar_warn_cflags): Set when using gcc.
490 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
492 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
494 * compress.c: Include stdlib.h and compress.h.
496 (report_str_error): Make static.
497 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
498 (hrd_inflate_str): Likewise.
500 * compress.h (init_compression, end_compression, init_inflation,
501 end_inflation): Prototype void arguments.
503 * dostime.c (rcsid): Delete.
505 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
506 Make functions static. Cast ctype function argument to `unsigned
507 char'. Add parens in if-stmts. Constify.
508 (Usage): Change into a macro.
509 (jargrep): Remove unused parameter.
511 * jartool.c: Constify. Add parens in if-stmts. Align
512 signed/unsigned char pointers in functions calls using casts.
514 (list_jar): Fix printf format specifier.
515 (usage): Chop long string into bits. Reformat.
517 * pushback.c (rcsid): Delete.
519 2000-12-13 Tom Tromey <tromey@redhat.com>
521 * jartool.c (extract_jar): Use strchr, not index.
523 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
525 * install-defs.sh: Removed.
527 2000-12-10 Robert Lipe <robertlipe@usa.net>
529 * jargrep.c (jargrep): Added null statement after case.
531 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
534 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
536 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
538 * Makefile.am: New file.
539 * Makefile.in: Rebuilt.
540 * aclocal.m4: Likewise.
541 * stamp-h.in: Likewise.
542 * config.h.in: Likewise.
543 * configure.in (AM_INIT_AUTOMAKE): Added.
544 (AM_CONFIG_HEADER): Likewise.
545 (AC_CHECK_HEADERS): Check for sys/param.h
546 (AC_CHECK_LIB): Don't check for system's zlib.
547 (AC_CHECK_FUNC): Removed system's zlib function checks.
548 (ZDEPS. ZLIBS, ZINCS): Added.
549 * configure: Rebuilt.
550 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
551 (init_args, get_next_arg): New function.
552 (use_explicit_list_only, read_names_from_stdin): New global
553 (main): Parse new non standard options 'E' and '@', check and
554 report their usage if necessary. Use init_args and get_next_arg.
556 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
557 (usage): Added `-E' and `-@'.
558 * jartool.h (VERSION): Macro removed.
560 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
562 * fastjar imported from sourceforge.net/projects/fastjar with
563 Bryan Burns' permission. Check `CHANGES' for post import changes.
564 * ChangeLog: Created.
566 * mkinstalldirs: Likewise.