1 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
3 * Makefile.am: Remove -no-dependencies.
4 * Makefile.in: Regenerate.
6 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
8 * Makefile.am: Define ACLOCAL_AMFLAGS.
9 * acinclude.m4: Remove unnecessary sinclude.
10 * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
12 2004-09-23 Tom Tromey <tromey@redhat.com>
14 * jartool.c (extract_jar): Unconditionally read extra data in the
15 entry header; don't read it after the file contents.
17 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
20 * Makefile.am: Force fastjar.info to be built in build directory.
21 * Makefile.in: Regenerate.
23 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
25 * Makefile.am: Rename jar binary to fastjar.
26 * Makefile.in: Regenerate.
27 * fastjar.texi: Rename references to jar binary with fastjar.
29 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
31 * jartool.c (main): Ensure that only one of ftruncate and _chsize
34 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
37 * configure.ac: Check for ftruncate() and _chsize().
38 * jartool.c (main): Use _chsize if ftruncate not available.
39 * configure, config.h.in: Rebuilt.
41 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
43 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
45 2004-07-07 Matthias Klose <doko@debian.org>
47 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
48 * Makefile.in: Regenerate.
50 2004-07-06 Matthias Klose <doko@debian.org>
52 * Makefile.in: Regenerate.
53 * fastjar.texi: Update for '-u'.
55 2004-07-06 Casey Marshall <csm@gnu.org>
59 (jar_SOURCES): added shift.c, shift.h.
60 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
64 (write_data): new function.
65 (compress_file): call write_data.
68 Updated copyright year.
69 (progname): new variable.
70 (end_of_entries): new variable.
71 (main): open and read file when updating.
72 (find_entry): new function.
73 (looks_like_dir): new function.
74 (read_entries): new function.
75 (make_manifest): added parameter `updating'.
76 Call `add_file_to_jar' with `updating'.
77 (add_to_jar_with_dir): added parameter `updating'.
78 Call `add_to_jar' with `updating'.
79 (add_to_jar): added parameter `updating'.
80 Call `add_file_to_jar' with `updating'.
81 Don't add directories if they already exist.
82 (add_file_to_jar): added parameter `updating'.
83 Update entries if they already exist.
86 Added #ifndef __FASTJAR_JARTOOL_H__.
87 (struct zipentry): added `flags'.
94 (CEN_FLAGS): new constant.
96 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
98 * Makefile.am: Silence two automake warnings.
99 * Makefile.in: Regenerate.
101 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
104 * configure.ac: Add check for long long.
105 * jartool.h: Check for long long before using it.
106 * configure: Regenerate
107 * config.h.in: Regenerate.
109 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
111 * acinclude.m4: Quote first argument of AC_DEFUNs.
112 * aclocal.m4: Regenerate with automake 1.8.
113 * Makefile.in: Likewise.
114 * configure: Regenerate.
115 * .cvsignore: New file.
117 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
120 * configure.ac: Parse --enable-generated-files-in-srcdir.
121 * Makefile.am: Copy man and info files to srcdir if requested.
122 * configure: Regenerate.
123 * Makefile.in Regenerate.
125 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
127 * configure.ac: Bump AC_PREREQ to 2.59.
128 * configure: Regenerate.
130 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
132 * configure: Regenerate for config/accross.m4 correction.
134 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
136 * configure.in: Rename file to ...
137 * configure.ac: ... this. Add in AC_PREREQ(2.57)
138 * config.h.in: Regenerate.
139 * aclocal.m4: Regenerate.
140 * Makefile.in: Regenerate.
142 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
144 * jartool.c (make_manifest): Fix off-by-one bug when creating
145 an empty MANIFEST.MF.
147 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
149 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
150 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
151 * aclocal.m4, config.h.in, configure: Likewise.
152 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
154 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
156 * .cvsignore: Delete.
158 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
160 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
162 (fastjar.info): Update target to write to build directory.
163 (%.1): New implicit rule from a .pod file.
166 (jar.pod): New intermediate rule.
167 (grepjar.pod): Likewise.
168 * Makefile.in: Regenerate.
170 2003-08-13 Matthias Klose <doko@debian.org>
172 * fastjar.texi: License manual under the GPL.
173 * Makefile.am: Remove reference to fdl.texi
174 * Makefile.in: Regenerate
176 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
178 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
180 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
182 * README: Note that FastJar is not part of GCC.
184 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
187 * jartool.c (add_to_jar): Return 1 on failure to open file.
188 Split out -C case to:
189 * jartool.c (add_to_jar_with_dir): New function.
191 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
194 * jartool.c (main) Give proper error messages with -C, and
195 check for missing arguments properly. Send error messages
197 * jartool.c (add_to_jar): Make getcwd() call portable,
198 and check for error return.
200 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
202 * fastjar.texi: Remove @ at start of file.
204 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
206 * dostime.c: add #include <stddef.h> for definition of NULL
208 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
210 * fastjar.texi: Update to GFDL 1.2.
212 2003-01-31 Daiki Ueno <ueno@unixuser.org>
214 * jartool.c (extract_jar): Don't lseek to skip extra fields.
215 (consume): If the stream is seekable, do lseek.
217 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
219 * jargrep.c: Include xregex.h from libiberty instead of
220 system regex.h for better portability.
222 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
224 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
225 with a '\0' to guard against the case where the formatted
226 time string is more than the size allowed by the buffer.
228 2003-01-14 Tom Tromey <tromey@redhat.com>
230 * config.h.in: Rebuilt.
232 2002-12-30 DJ Delorie <dj@redhat.com>
234 * Makefile.am (jar.1, grepjar.1): Protect against
235 texi2pod/pod2man failing.
236 * Makefile.in: Regenerated.
238 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
240 * fastjar.texi: Include Cover Texts in man page.
242 2002-12-04 Jakub Jelinek <jakub@redhat.com>
244 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
246 2002-11-23 H.J. Lu <hjl@gnu.org>
248 * acinclude.m4: Include ../config/accross.m4.
249 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
250 (gcc_AC_EXAMINE_OBJECT): Removed.
251 (gcc_AC_C_COMPILE_ENDIAN): Removed.
252 * aclocal.m4; Rebuild.
254 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
255 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
256 * configure: Likewise.
258 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
260 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
261 "creat" to create extracted files.
263 2002-11-11 Tom Tromey <tromey@redhat.com>
265 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
267 (unix2dostime): Handle years before 1980. Correctly compute month
270 2002-11-10 Jakub Jelinek <jakub@redhat.com>
272 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
275 * configure.in (AC_CHECK_HEADERS): Add limits.h.
276 * configure, config.h.in: Rebuilt.
278 2002-11-07 Tom Tromey <tromey@redhat.com>
280 * dostime.c: Rewrote from scratch.
281 * dostime.h (dostime): Removed.
283 2002-10-20 Tom Tromey <tromey@redhat.com>
285 * jartool.c: Use mode 0666 when opening new file.
287 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
289 * jargrep.c (chk_wrd): Remove unused variable(s).
290 * jartool.c (main, create_central_header, list_jar): Likewise.
292 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
294 * configure, config.h.in: Rebuilt.
295 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
297 2002-09-11 Tom Tromey <tromey@redhat.com>
299 * Makefile.in: Rebuilt.
300 * Makefile.am (TEXINFO_TEX): New macro.
301 (info_TEXINFOS): Likewise.
302 (fastjar_TEXINFOS): Likewise.
303 (man_MANS): Likewise.
304 (EXTRA_DIST): Likewise.
305 (my_makei_flags): Likewise.
306 (fastjar.info): New rule.
307 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
308 (TEXINFO_TEX): Likewise.
309 (AUTOMAKE_OPTIONS): Added `cygnus'.
311 2002-09-11 Matthias Klose <doko@debian.org>
313 * Makefile.am: Revert the previous patch.
314 * Makefile.in: Regenerated.
316 2002-09-10 Matthias Klose <doko@debian.org>
319 * Makefile.am: Support building info docs and manpages.
320 * Makefile.in: Regenerated.
321 * configure.in: Set gcc_version.
322 * configure: Regenerated.
323 * jargrep.c: Update usage and help strings.
325 2002-09-09 Tom Tromey <tromey@redhat.com>
327 * jartool.c (mkdir): Define.
328 * config.h.in: Rebuilt.
329 * aclocal.m4, configure: Rebuilt.
330 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
331 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
334 2002-09-04 Tom Tromey <tromey@redhat.com>
336 From greenrd@hotmail.com:
337 * jartool.c (list_jar): Correctly determine when new `filename'
338 buffer must be allocated. Fixes PR java/7830.
340 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
342 * configure.in: Support cross-compiling.
343 * configure: Regenerate.
344 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
345 (gcc_AC_EXAMINE_OBJECT): New.
346 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
348 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
350 * jartool.c (expand_options): Handle tar-style argument list with a
353 2002-02-23 Anthony Green <green@redhat.com>
355 * jartool.c (main): Fix handling of -C.
357 2002-01-30 Tom Tromey <tromey@redhat.com>
359 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
362 2002-01-11 Tom Tromey <tromey@redhat.com>
364 * Makefile.in: Rebuilt.
365 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
367 2002-01-09 Tom Tromey <tromey@redhat.com>
370 * jargrep.h: Removed RCS keywords.
372 * configure, Makefile.in, config.h.in: Rebuilt.
373 * configure.in: Added AM_MAINTAINER_MODE.
374 Don't look for getopt.h. Use `fastjar' as package name.
375 * Makefile.am (INCLUDES): Look in ../include.
376 (LIBIBERTY): New macro.
378 (jar_DEPENDENCIES): Likewise.
379 (grepjar_LDADD): Likewise.
380 (grepjar_DEPENDENCIES): Likewise.
381 * jargrep.c: Removed RCS keywords. Always include getopt.h.
382 (LONG_OPT): New macro.
383 (OPT_HELP): Likewise.
384 (main): Use getopt_long. Let getopt print invalid argument
385 message. Handle --help. Use version().
386 (version): New function.
387 (optarg, optind): Don't declare.
388 (option_vec): New global.
389 (help): New function.
390 (Usage): Updated to GNU standards.
391 * jartool.c: Removed RCS keywords. Include getopt.h.
392 (LONG_OPT): New macro.
393 (OPT_HELP): Likewise.
394 (options): New global.
395 (help): New function.
396 (usage): Print a single line.
397 (version): New function.
398 (expand_options): New function.
399 (main): Use getopt_long and expand_options. Fail if `-u'
400 specified. Changed handling of -f, -m, -V options.
401 (OPTION_STRING): New macro.
402 (version_string): Removed.
404 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
407 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
408 * Makefile.am: Move grepjar to bin_PROGRAMS.
409 * config.h.in: Regenerated.
410 * Makefile.in: Regenerated.
411 * aclocal.m4: Regenerated.
412 * stamp-h.in: Regenerated.
413 * jargrep.c: Eliminate some signed/unsigned and default
414 uninitialized warnings. Use HAVE_STDLIB_H instead of
416 * jartool.c: Likewise.
417 * compress.c: Likewise.
419 2001-09-17 Tom Tromey <tromey@redhat.com>
422 * aclocal.m4, configure, Makefile.in: Rebuilt.
423 * configure.in: Added AC_EXEEXT.
425 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
427 * jatool.c (extract_jar): Account for null termination when determining
428 whether to expand "filename".
430 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
432 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
435 2001-08-27 Tom Tromey <tromey@redhat.com>
437 * jartool.c (jarfile): Remove length limitation.
438 (main): Use jt_strdup when initializing jarfile.
440 2001-07-04 Tom Tromey <tromey@redhat.com>
442 Modified from patch by Julian Hall <jules@acris.co.uk>:
443 * jartool.c (errno): Conditionally declare.
444 (O_BINARY): Conditionally define.
445 (main): Use open, not creat. Use O_BINARY everywhere.
446 (make_manifest): Use O_BINARY.
447 (add_to_jar): Likewise.
449 2001-06-28 Tom Tromey <tromey@redhat.com>
451 * configure: Rebuilt.
452 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
454 2001-05-15 Per Bothner <per@bothner.com>
456 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
458 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
460 * jartool.c (jt_strdup): New function.
461 (get_next_arg): Use jt_strdup instead of strdup.
463 2001-01-21 Tom Tromey <tromey@redhat.com>
465 * Makefile.in: Rebuilt.
466 * Makefile.am (bin_PROGRAMS): Remove grepjar.
467 (EXTRA_PROGRAMS): New macro.
469 2000-12-28 Robert Lipe <robertl@sco.com>
471 * jartool.c (MAXPATHLEN): Provide if not defined.
473 2000-12-15 Tom Tromey <tromey@redhat.com>
474 Kelley Cook <kelleycook@home.com>
476 * jargrep.c: Include getopt.h if it exists.
478 * configure, config.h: Rebuilt.
479 * configure.in: Check for getopt.h.
481 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
483 * configure.in (fastjar_warn_cflags): Set when using gcc.
485 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
487 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
489 * compress.c: Include stdlib.h and compress.h.
491 (report_str_error): Make static.
492 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
493 (hrd_inflate_str): Likewise.
495 * compress.h (init_compression, end_compression, init_inflation,
496 end_inflation): Prototype void arguments.
498 * dostime.c (rcsid): Delete.
500 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
501 Make functions static. Cast ctype function argument to `unsigned
502 char'. Add parens in if-stmts. Constify.
503 (Usage): Change into a macro.
504 (jargrep): Remove unused parameter.
506 * jartool.c: Constify. Add parens in if-stmts. Align
507 signed/unsigned char pointers in functions calls using casts.
509 (list_jar): Fix printf format specifier.
510 (usage): Chop long string into bits. Reformat.
512 * pushback.c (rcsid): Delete.
514 2000-12-13 Tom Tromey <tromey@redhat.com>
516 * jartool.c (extract_jar): Use strchr, not index.
518 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
520 * install-defs.sh: Removed.
522 2000-12-10 Robert Lipe <robertlipe@usa.net>
524 * jargrep.c (jargrep): Added null statement after case.
526 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
529 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
531 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
533 * Makefile.am: New file.
534 * Makefile.in: Rebuilt.
535 * aclocal.m4: Likewise.
536 * stamp-h.in: Likewise.
537 * config.h.in: Likewise.
538 * configure.in (AM_INIT_AUTOMAKE): Added.
539 (AM_CONFIG_HEADER): Likewise.
540 (AC_CHECK_HEADERS): Check for sys/param.h
541 (AC_CHECK_LIB): Don't check for system's zlib.
542 (AC_CHECK_FUNC): Removed system's zlib function checks.
543 (ZDEPS. ZLIBS, ZINCS): Added.
544 * configure: Rebuilt.
545 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
546 (init_args, get_next_arg): New function.
547 (use_explicit_list_only, read_names_from_stdin): New global
548 (main): Parse new non standard options 'E' and '@', check and
549 report their usage if necessary. Use init_args and get_next_arg.
551 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
552 (usage): Added `-E' and `-@'.
553 * jartool.h (VERSION): Macro removed.
555 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
557 * fastjar imported from sourceforge.net/projects/fastjar with
558 Bryan Burns' permission. Check `CHANGES' for post import changes.
559 * ChangeLog: Created.
561 * mkinstalldirs: Likewise.