1 2004-09-23 Tom Tromey <tromey@redhat.com>
3 * jartool.c (extract_jar): Unconditionally read extra data in the
4 entry header; don't read it after the file contents.
6 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
9 * Makefile.am: Force fastjar.info to be built in build directory.
10 * Makefile.in: Regenerate.
12 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
14 * Makefile.am: Rename jar binary to fastjar.
15 * Makefile.in: Regenerate.
16 * fastjar.texi: Rename references to jar binary with fastjar.
18 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
20 * jartool.c (main): Ensure that only one of ftruncate and _chsize
23 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
26 * configure.ac: Check for ftruncate() and _chsize().
27 * jartool.c (main): Use _chsize if ftruncate not available.
28 * configure, config.h.in: Rebuilt.
30 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
32 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
34 2004-07-07 Matthias Klose <doko@debian.org>
36 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
37 * Makefile.in: Regenerate.
39 2004-07-06 Matthias Klose <doko@debian.org>
41 * Makefile.in: Regenerate.
42 * fastjar.texi: Update for '-u'.
44 2004-07-06 Casey Marshall <csm@gnu.org>
48 (jar_SOURCES): added shift.c, shift.h.
49 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
53 (write_data): new function.
54 (compress_file): call write_data.
57 Updated copyright year.
58 (progname): new variable.
59 (end_of_entries): new variable.
60 (main): open and read file when updating.
61 (find_entry): new function.
62 (looks_like_dir): new function.
63 (read_entries): new function.
64 (make_manifest): added parameter `updating'.
65 Call `add_file_to_jar' with `updating'.
66 (add_to_jar_with_dir): added parameter `updating'.
67 Call `add_to_jar' with `updating'.
68 (add_to_jar): added parameter `updating'.
69 Call `add_file_to_jar' with `updating'.
70 Don't add directories if they already exist.
71 (add_file_to_jar): added parameter `updating'.
72 Update entries if they already exist.
75 Added #ifndef __FASTJAR_JARTOOL_H__.
76 (struct zipentry): added `flags'.
83 (CEN_FLAGS): new constant.
85 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
87 * Makefile.am: Silence two automake warnings.
88 * Makefile.in: Regenerate.
90 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
93 * configure.ac: Add check for long long.
94 * jartool.h: Check for long long before using it.
95 * configure: Regenerate
96 * config.h.in: Regenerate.
98 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
100 * acinclude.m4: Quote first argument of AC_DEFUNs.
101 * aclocal.m4: Regenerate with automake 1.8.
102 * Makefile.in: Likewise.
103 * configure: Regenerate.
104 * .cvsignore: New file.
106 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
109 * configure.ac: Parse --enable-generated-files-in-srcdir.
110 * Makefile.am: Copy man and info files to srcdir if requested.
111 * configure: Regenerate.
112 * Makefile.in Regenerate.
114 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
116 * configure.ac: Bump AC_PREREQ to 2.59.
117 * configure: Regenerate.
119 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
121 * configure: Regenerate for config/accross.m4 correction.
123 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
125 * configure.in: Rename file to ...
126 * configure.ac: ... this. Add in AC_PREREQ(2.57)
127 * config.h.in: Regenerate.
128 * aclocal.m4: Regenerate.
129 * Makefile.in: Regenerate.
131 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
133 * jartool.c (make_manifest): Fix off-by-one bug when creating
134 an empty MANIFEST.MF.
136 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
138 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
139 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
140 * aclocal.m4, config.h.in, configure: Likewise.
141 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
143 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
145 * .cvsignore: Delete.
147 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
149 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
151 (fastjar.info): Update target to write to build directory.
152 (%.1): New implicit rule from a .pod file.
155 (jar.pod): New intermediate rule.
156 (grepjar.pod): Likewise.
157 * Makefile.in: Regenerate.
159 2003-08-13 Matthias Klose <doko@debian.org>
161 * fastjar.texi: License manual under the GPL.
162 * Makefile.am: Remove reference to fdl.texi
163 * Makefile.in: Regenerate
165 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
167 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
169 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
171 * README: Note that FastJar is not part of GCC.
173 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
176 * jartool.c (add_to_jar): Return 1 on failure to open file.
177 Split out -C case to:
178 * jartool.c (add_to_jar_with_dir): New function.
180 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
183 * jartool.c (main) Give proper error messages with -C, and
184 check for missing arguments properly. Send error messages
186 * jartool.c (add_to_jar): Make getcwd() call portable,
187 and check for error return.
189 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
191 * fastjar.texi: Remove @ at start of file.
193 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
195 * dostime.c: add #include <stddef.h> for definition of NULL
197 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
199 * fastjar.texi: Update to GFDL 1.2.
201 2003-01-31 Daiki Ueno <ueno@unixuser.org>
203 * jartool.c (extract_jar): Don't lseek to skip extra fields.
204 (consume): If the stream is seekable, do lseek.
206 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
208 * jargrep.c: Include xregex.h from libiberty instead of
209 system regex.h for better portability.
211 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
213 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
214 with a '\0' to guard against the case where the formatted
215 time string is more than the size allowed by the buffer.
217 2003-01-14 Tom Tromey <tromey@redhat.com>
219 * config.h.in: Rebuilt.
221 2002-12-30 DJ Delorie <dj@redhat.com>
223 * Makefile.am (jar.1, grepjar.1): Protect against
224 texi2pod/pod2man failing.
225 * Makefile.in: Regenerated.
227 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
229 * fastjar.texi: Include Cover Texts in man page.
231 2002-12-04 Jakub Jelinek <jakub@redhat.com>
233 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
235 2002-11-23 H.J. Lu <hjl@gnu.org>
237 * acinclude.m4: Include ../config/accross.m4.
238 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
239 (gcc_AC_EXAMINE_OBJECT): Removed.
240 (gcc_AC_C_COMPILE_ENDIAN): Removed.
241 * aclocal.m4; Rebuild.
243 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
244 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
245 * configure: Likewise.
247 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
249 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
250 "creat" to create extracted files.
252 2002-11-11 Tom Tromey <tromey@redhat.com>
254 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
256 (unix2dostime): Handle years before 1980. Correctly compute month
259 2002-11-10 Jakub Jelinek <jakub@redhat.com>
261 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
264 * configure.in (AC_CHECK_HEADERS): Add limits.h.
265 * configure, config.h.in: Rebuilt.
267 2002-11-07 Tom Tromey <tromey@redhat.com>
269 * dostime.c: Rewrote from scratch.
270 * dostime.h (dostime): Removed.
272 2002-10-20 Tom Tromey <tromey@redhat.com>
274 * jartool.c: Use mode 0666 when opening new file.
276 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
278 * jargrep.c (chk_wrd): Remove unused variable(s).
279 * jartool.c (main, create_central_header, list_jar): Likewise.
281 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
283 * configure, config.h.in: Rebuilt.
284 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
286 2002-09-11 Tom Tromey <tromey@redhat.com>
288 * Makefile.in: Rebuilt.
289 * Makefile.am (TEXINFO_TEX): New macro.
290 (info_TEXINFOS): Likewise.
291 (fastjar_TEXINFOS): Likewise.
292 (man_MANS): Likewise.
293 (EXTRA_DIST): Likewise.
294 (my_makei_flags): Likewise.
295 (fastjar.info): New rule.
296 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
297 (TEXINFO_TEX): Likewise.
298 (AUTOMAKE_OPTIONS): Added `cygnus'.
300 2002-09-11 Matthias Klose <doko@debian.org>
302 * Makefile.am: Revert the previous patch.
303 * Makefile.in: Regenerated.
305 2002-09-10 Matthias Klose <doko@debian.org>
308 * Makefile.am: Support building info docs and manpages.
309 * Makefile.in: Regenerated.
310 * configure.in: Set gcc_version.
311 * configure: Regenerated.
312 * jargrep.c: Update usage and help strings.
314 2002-09-09 Tom Tromey <tromey@redhat.com>
316 * jartool.c (mkdir): Define.
317 * config.h.in: Rebuilt.
318 * aclocal.m4, configure: Rebuilt.
319 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
320 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
323 2002-09-04 Tom Tromey <tromey@redhat.com>
325 From greenrd@hotmail.com:
326 * jartool.c (list_jar): Correctly determine when new `filename'
327 buffer must be allocated. Fixes PR java/7830.
329 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
331 * configure.in: Support cross-compiling.
332 * configure: Regenerate.
333 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
334 (gcc_AC_EXAMINE_OBJECT): New.
335 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
337 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
339 * jartool.c (expand_options): Handle tar-style argument list with a
342 2002-02-23 Anthony Green <green@redhat.com>
344 * jartool.c (main): Fix handling of -C.
346 2002-01-30 Tom Tromey <tromey@redhat.com>
348 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
351 2002-01-11 Tom Tromey <tromey@redhat.com>
353 * Makefile.in: Rebuilt.
354 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
356 2002-01-09 Tom Tromey <tromey@redhat.com>
359 * jargrep.h: Removed RCS keywords.
361 * configure, Makefile.in, config.h.in: Rebuilt.
362 * configure.in: Added AM_MAINTAINER_MODE.
363 Don't look for getopt.h. Use `fastjar' as package name.
364 * Makefile.am (INCLUDES): Look in ../include.
365 (LIBIBERTY): New macro.
367 (jar_DEPENDENCIES): Likewise.
368 (grepjar_LDADD): Likewise.
369 (grepjar_DEPENDENCIES): Likewise.
370 * jargrep.c: Removed RCS keywords. Always include getopt.h.
371 (LONG_OPT): New macro.
372 (OPT_HELP): Likewise.
373 (main): Use getopt_long. Let getopt print invalid argument
374 message. Handle --help. Use version().
375 (version): New function.
376 (optarg, optind): Don't declare.
377 (option_vec): New global.
378 (help): New function.
379 (Usage): Updated to GNU standards.
380 * jartool.c: Removed RCS keywords. Include getopt.h.
381 (LONG_OPT): New macro.
382 (OPT_HELP): Likewise.
383 (options): New global.
384 (help): New function.
385 (usage): Print a single line.
386 (version): New function.
387 (expand_options): New function.
388 (main): Use getopt_long and expand_options. Fail if `-u'
389 specified. Changed handling of -f, -m, -V options.
390 (OPTION_STRING): New macro.
391 (version_string): Removed.
393 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
396 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
397 * Makefile.am: Move grepjar to bin_PROGRAMS.
398 * config.h.in: Regenerated.
399 * Makefile.in: Regenerated.
400 * aclocal.m4: Regenerated.
401 * stamp-h.in: Regenerated.
402 * jargrep.c: Eliminate some signed/unsigned and default
403 uninitialized warnings. Use HAVE_STDLIB_H instead of
405 * jartool.c: Likewise.
406 * compress.c: Likewise.
408 2001-09-17 Tom Tromey <tromey@redhat.com>
411 * aclocal.m4, configure, Makefile.in: Rebuilt.
412 * configure.in: Added AC_EXEEXT.
414 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
416 * jatool.c (extract_jar): Account for null termination when determining
417 whether to expand "filename".
419 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
421 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
424 2001-08-27 Tom Tromey <tromey@redhat.com>
426 * jartool.c (jarfile): Remove length limitation.
427 (main): Use jt_strdup when initializing jarfile.
429 2001-07-04 Tom Tromey <tromey@redhat.com>
431 Modified from patch by Julian Hall <jules@acris.co.uk>:
432 * jartool.c (errno): Conditionally declare.
433 (O_BINARY): Conditionally define.
434 (main): Use open, not creat. Use O_BINARY everywhere.
435 (make_manifest): Use O_BINARY.
436 (add_to_jar): Likewise.
438 2001-06-28 Tom Tromey <tromey@redhat.com>
440 * configure: Rebuilt.
441 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
443 2001-05-15 Per Bothner <per@bothner.com>
445 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
447 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
449 * jartool.c (jt_strdup): New function.
450 (get_next_arg): Use jt_strdup instead of strdup.
452 2001-01-21 Tom Tromey <tromey@redhat.com>
454 * Makefile.in: Rebuilt.
455 * Makefile.am (bin_PROGRAMS): Remove grepjar.
456 (EXTRA_PROGRAMS): New macro.
458 2000-12-28 Robert Lipe <robertl@sco.com>
460 * jartool.c (MAXPATHLEN): Provide if not defined.
462 2000-12-15 Tom Tromey <tromey@redhat.com>
463 Kelley Cook <kelleycook@home.com>
465 * jargrep.c: Include getopt.h if it exists.
467 * configure, config.h: Rebuilt.
468 * configure.in: Check for getopt.h.
470 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
472 * configure.in (fastjar_warn_cflags): Set when using gcc.
474 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
476 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
478 * compress.c: Include stdlib.h and compress.h.
480 (report_str_error): Make static.
481 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
482 (hrd_inflate_str): Likewise.
484 * compress.h (init_compression, end_compression, init_inflation,
485 end_inflation): Prototype void arguments.
487 * dostime.c (rcsid): Delete.
489 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
490 Make functions static. Cast ctype function argument to `unsigned
491 char'. Add parens in if-stmts. Constify.
492 (Usage): Change into a macro.
493 (jargrep): Remove unused parameter.
495 * jartool.c: Constify. Add parens in if-stmts. Align
496 signed/unsigned char pointers in functions calls using casts.
498 (list_jar): Fix printf format specifier.
499 (usage): Chop long string into bits. Reformat.
501 * pushback.c (rcsid): Delete.
503 2000-12-13 Tom Tromey <tromey@redhat.com>
505 * jartool.c (extract_jar): Use strchr, not index.
507 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
509 * install-defs.sh: Removed.
511 2000-12-10 Robert Lipe <robertlipe@usa.net>
513 * jargrep.c (jargrep): Added null statement after case.
515 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
518 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
520 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
522 * Makefile.am: New file.
523 * Makefile.in: Rebuilt.
524 * aclocal.m4: Likewise.
525 * stamp-h.in: Likewise.
526 * config.h.in: Likewise.
527 * configure.in (AM_INIT_AUTOMAKE): Added.
528 (AM_CONFIG_HEADER): Likewise.
529 (AC_CHECK_HEADERS): Check for sys/param.h
530 (AC_CHECK_LIB): Don't check for system's zlib.
531 (AC_CHECK_FUNC): Removed system's zlib function checks.
532 (ZDEPS. ZLIBS, ZINCS): Added.
533 * configure: Rebuilt.
534 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
535 (init_args, get_next_arg): New function.
536 (use_explicit_list_only, read_names_from_stdin): New global
537 (main): Parse new non standard options 'E' and '@', check and
538 report their usage if necessary. Use init_args and get_next_arg.
540 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
541 (usage): Added `-E' and `-@'.
542 * jartool.h (VERSION): Macro removed.
544 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
546 * fastjar imported from sourceforge.net/projects/fastjar with
547 Bryan Burns' permission. Check `CHANGES' for post import changes.
548 * ChangeLog: Created.
550 * mkinstalldirs: Likewise.