1 2005-05-17 Kelley Cook <kcook@gcc.gnu.org>
3 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
5 * Makefile.am: Remove ACLOCAL_AMFLAGS.
6 * aclocal.m4, Makefile.in, configure, config.h.in: Regenerate.
8 2005-03-28 Marcin Dalecki <martin@dalecki.de>
10 * jartool.c (main): Indentation fixlet.
11 (add_entry): Likewise.
12 (init_args): Don't use K&R style.
13 (jt_strdup): Likewise.
14 (get_next_arg): Add explicit '(void)'.
15 (init_headers): Likewise.
18 2005-03-15 Zack Weinberg <zack@codesourcery.com>
20 * Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
21 (BASEVER, DEVPHASE): New variables.
22 (POD2MAN): Adjust setting of --release option.
23 (fastjar.1, grepjar.1, gcc-vers.texi): New rules.
24 * Makefile.in: Regenerate.
25 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
26 * aclocal.m4, configure: Regenerate.
28 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
30 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
31 * configure, aclocal.m4, Makefile.in: Regenerate.
33 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
35 * Makefile.am: Remove -no-dependencies.
36 * Makefile.in: Regenerate.
38 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
40 * Makefile.am: Define ACLOCAL_AMFLAGS.
41 * acinclude.m4: Remove unnecessary sinclude.
42 * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
44 2004-09-23 Tom Tromey <tromey@redhat.com>
46 * jartool.c (extract_jar): Unconditionally read extra data in the
47 entry header; don't read it after the file contents.
49 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
52 * Makefile.am: Force fastjar.info to be built in build directory.
53 * Makefile.in: Regenerate.
55 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
57 * Makefile.am: Rename jar binary to fastjar.
58 * Makefile.in: Regenerate.
59 * fastjar.texi: Rename references to jar binary with fastjar.
61 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
63 * jartool.c (main): Ensure that only one of ftruncate and _chsize
66 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
69 * configure.ac: Check for ftruncate() and _chsize().
70 * jartool.c (main): Use _chsize if ftruncate not available.
71 * configure, config.h.in: Rebuilt.
73 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
75 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
77 2004-07-07 Matthias Klose <doko@debian.org>
79 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
80 * Makefile.in: Regenerate.
82 2004-07-06 Matthias Klose <doko@debian.org>
84 * Makefile.in: Regenerate.
85 * fastjar.texi: Update for '-u'.
87 2004-07-06 Casey Marshall <csm@gnu.org>
91 (jar_SOURCES): added shift.c, shift.h.
92 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
96 (write_data): new function.
97 (compress_file): call write_data.
100 Updated copyright year.
101 (progname): new variable.
102 (end_of_entries): new variable.
103 (main): open and read file when updating.
104 (find_entry): new function.
105 (looks_like_dir): new function.
106 (read_entries): new function.
107 (make_manifest): added parameter `updating'.
108 Call `add_file_to_jar' with `updating'.
109 (add_to_jar_with_dir): added parameter `updating'.
110 Call `add_to_jar' with `updating'.
111 (add_to_jar): added parameter `updating'.
112 Call `add_file_to_jar' with `updating'.
113 Don't add directories if they already exist.
114 (add_file_to_jar): added parameter `updating'.
115 Update entries if they already exist.
118 Added #ifndef __FASTJAR_JARTOOL_H__.
119 (struct zipentry): added `flags'.
126 (CEN_FLAGS): new constant.
128 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
130 * Makefile.am: Silence two automake warnings.
131 * Makefile.in: Regenerate.
133 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
136 * configure.ac: Add check for long long.
137 * jartool.h: Check for long long before using it.
138 * configure: Regenerate
139 * config.h.in: Regenerate.
141 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
143 * acinclude.m4: Quote first argument of AC_DEFUNs.
144 * aclocal.m4: Regenerate with automake 1.8.
145 * Makefile.in: Likewise.
146 * configure: Regenerate.
147 * .cvsignore: New file.
149 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
152 * configure.ac: Parse --enable-generated-files-in-srcdir.
153 * Makefile.am: Copy man and info files to srcdir if requested.
154 * configure: Regenerate.
155 * Makefile.in Regenerate.
157 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
159 * configure.ac: Bump AC_PREREQ to 2.59.
160 * configure: Regenerate.
162 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
164 * configure: Regenerate for config/accross.m4 correction.
166 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
168 * configure.in: Rename file to ...
169 * configure.ac: ... this. Add in AC_PREREQ(2.57)
170 * config.h.in: Regenerate.
171 * aclocal.m4: Regenerate.
172 * Makefile.in: Regenerate.
174 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
176 * jartool.c (make_manifest): Fix off-by-one bug when creating
177 an empty MANIFEST.MF.
179 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
181 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
182 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
183 * aclocal.m4, config.h.in, configure: Likewise.
184 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
186 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
188 * .cvsignore: Delete.
190 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
192 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
194 (fastjar.info): Update target to write to build directory.
195 (%.1): New implicit rule from a .pod file.
198 (jar.pod): New intermediate rule.
199 (grepjar.pod): Likewise.
200 * Makefile.in: Regenerate.
202 2003-08-13 Matthias Klose <doko@debian.org>
204 * fastjar.texi: License manual under the GPL.
205 * Makefile.am: Remove reference to fdl.texi
206 * Makefile.in: Regenerate
208 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
210 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
212 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
214 * README: Note that FastJar is not part of GCC.
216 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
219 * jartool.c (add_to_jar): Return 1 on failure to open file.
220 Split out -C case to:
221 * jartool.c (add_to_jar_with_dir): New function.
223 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
226 * jartool.c (main) Give proper error messages with -C, and
227 check for missing arguments properly. Send error messages
229 * jartool.c (add_to_jar): Make getcwd() call portable,
230 and check for error return.
232 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
234 * fastjar.texi: Remove @ at start of file.
236 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
238 * dostime.c: add #include <stddef.h> for definition of NULL
240 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
242 * fastjar.texi: Update to GFDL 1.2.
244 2003-01-31 Daiki Ueno <ueno@unixuser.org>
246 * jartool.c (extract_jar): Don't lseek to skip extra fields.
247 (consume): If the stream is seekable, do lseek.
249 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
251 * jargrep.c: Include xregex.h from libiberty instead of
252 system regex.h for better portability.
254 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
256 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
257 with a '\0' to guard against the case where the formatted
258 time string is more than the size allowed by the buffer.
260 2003-01-14 Tom Tromey <tromey@redhat.com>
262 * config.h.in: Rebuilt.
264 2002-12-30 DJ Delorie <dj@redhat.com>
266 * Makefile.am (jar.1, grepjar.1): Protect against
267 texi2pod/pod2man failing.
268 * Makefile.in: Regenerated.
270 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
272 * fastjar.texi: Include Cover Texts in man page.
274 2002-12-04 Jakub Jelinek <jakub@redhat.com>
276 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
278 2002-11-23 H.J. Lu <hjl@gnu.org>
280 * acinclude.m4: Include ../config/accross.m4.
281 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
282 (gcc_AC_EXAMINE_OBJECT): Removed.
283 (gcc_AC_C_COMPILE_ENDIAN): Removed.
284 * aclocal.m4; Rebuild.
286 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
287 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
288 * configure: Likewise.
290 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
292 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
293 "creat" to create extracted files.
295 2002-11-11 Tom Tromey <tromey@redhat.com>
297 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
299 (unix2dostime): Handle years before 1980. Correctly compute month
302 2002-11-10 Jakub Jelinek <jakub@redhat.com>
304 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
307 * configure.in (AC_CHECK_HEADERS): Add limits.h.
308 * configure, config.h.in: Rebuilt.
310 2002-11-07 Tom Tromey <tromey@redhat.com>
312 * dostime.c: Rewrote from scratch.
313 * dostime.h (dostime): Removed.
315 2002-10-20 Tom Tromey <tromey@redhat.com>
317 * jartool.c: Use mode 0666 when opening new file.
319 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
321 * jargrep.c (chk_wrd): Remove unused variable(s).
322 * jartool.c (main, create_central_header, list_jar): Likewise.
324 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
326 * configure, config.h.in: Rebuilt.
327 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
329 2002-09-11 Tom Tromey <tromey@redhat.com>
331 * Makefile.in: Rebuilt.
332 * Makefile.am (TEXINFO_TEX): New macro.
333 (info_TEXINFOS): Likewise.
334 (fastjar_TEXINFOS): Likewise.
335 (man_MANS): Likewise.
336 (EXTRA_DIST): Likewise.
337 (my_makei_flags): Likewise.
338 (fastjar.info): New rule.
339 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
340 (TEXINFO_TEX): Likewise.
341 (AUTOMAKE_OPTIONS): Added `cygnus'.
343 2002-09-11 Matthias Klose <doko@debian.org>
345 * Makefile.am: Revert the previous patch.
346 * Makefile.in: Regenerated.
348 2002-09-10 Matthias Klose <doko@debian.org>
351 * Makefile.am: Support building info docs and manpages.
352 * Makefile.in: Regenerated.
353 * configure.in: Set gcc_version.
354 * configure: Regenerated.
355 * jargrep.c: Update usage and help strings.
357 2002-09-09 Tom Tromey <tromey@redhat.com>
359 * jartool.c (mkdir): Define.
360 * config.h.in: Rebuilt.
361 * aclocal.m4, configure: Rebuilt.
362 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
363 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
366 2002-09-04 Tom Tromey <tromey@redhat.com>
368 From greenrd@hotmail.com:
369 * jartool.c (list_jar): Correctly determine when new `filename'
370 buffer must be allocated. Fixes PR java/7830.
372 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
374 * configure.in: Support cross-compiling.
375 * configure: Regenerate.
376 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
377 (gcc_AC_EXAMINE_OBJECT): New.
378 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
380 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
382 * jartool.c (expand_options): Handle tar-style argument list with a
385 2002-02-23 Anthony Green <green@redhat.com>
387 * jartool.c (main): Fix handling of -C.
389 2002-01-30 Tom Tromey <tromey@redhat.com>
391 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
394 2002-01-11 Tom Tromey <tromey@redhat.com>
396 * Makefile.in: Rebuilt.
397 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
399 2002-01-09 Tom Tromey <tromey@redhat.com>
402 * jargrep.h: Removed RCS keywords.
404 * configure, Makefile.in, config.h.in: Rebuilt.
405 * configure.in: Added AM_MAINTAINER_MODE.
406 Don't look for getopt.h. Use `fastjar' as package name.
407 * Makefile.am (INCLUDES): Look in ../include.
408 (LIBIBERTY): New macro.
410 (jar_DEPENDENCIES): Likewise.
411 (grepjar_LDADD): Likewise.
412 (grepjar_DEPENDENCIES): Likewise.
413 * jargrep.c: Removed RCS keywords. Always include getopt.h.
414 (LONG_OPT): New macro.
415 (OPT_HELP): Likewise.
416 (main): Use getopt_long. Let getopt print invalid argument
417 message. Handle --help. Use version().
418 (version): New function.
419 (optarg, optind): Don't declare.
420 (option_vec): New global.
421 (help): New function.
422 (Usage): Updated to GNU standards.
423 * jartool.c: Removed RCS keywords. Include getopt.h.
424 (LONG_OPT): New macro.
425 (OPT_HELP): Likewise.
426 (options): New global.
427 (help): New function.
428 (usage): Print a single line.
429 (version): New function.
430 (expand_options): New function.
431 (main): Use getopt_long and expand_options. Fail if `-u'
432 specified. Changed handling of -f, -m, -V options.
433 (OPTION_STRING): New macro.
434 (version_string): Removed.
436 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
439 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
440 * Makefile.am: Move grepjar to bin_PROGRAMS.
441 * config.h.in: Regenerated.
442 * Makefile.in: Regenerated.
443 * aclocal.m4: Regenerated.
444 * stamp-h.in: Regenerated.
445 * jargrep.c: Eliminate some signed/unsigned and default
446 uninitialized warnings. Use HAVE_STDLIB_H instead of
448 * jartool.c: Likewise.
449 * compress.c: Likewise.
451 2001-09-17 Tom Tromey <tromey@redhat.com>
454 * aclocal.m4, configure, Makefile.in: Rebuilt.
455 * configure.in: Added AC_EXEEXT.
457 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
459 * jatool.c (extract_jar): Account for null termination when determining
460 whether to expand "filename".
462 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
464 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
467 2001-08-27 Tom Tromey <tromey@redhat.com>
469 * jartool.c (jarfile): Remove length limitation.
470 (main): Use jt_strdup when initializing jarfile.
472 2001-07-04 Tom Tromey <tromey@redhat.com>
474 Modified from patch by Julian Hall <jules@acris.co.uk>:
475 * jartool.c (errno): Conditionally declare.
476 (O_BINARY): Conditionally define.
477 (main): Use open, not creat. Use O_BINARY everywhere.
478 (make_manifest): Use O_BINARY.
479 (add_to_jar): Likewise.
481 2001-06-28 Tom Tromey <tromey@redhat.com>
483 * configure: Rebuilt.
484 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
486 2001-05-15 Per Bothner <per@bothner.com>
488 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
490 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
492 * jartool.c (jt_strdup): New function.
493 (get_next_arg): Use jt_strdup instead of strdup.
495 2001-01-21 Tom Tromey <tromey@redhat.com>
497 * Makefile.in: Rebuilt.
498 * Makefile.am (bin_PROGRAMS): Remove grepjar.
499 (EXTRA_PROGRAMS): New macro.
501 2000-12-28 Robert Lipe <robertl@sco.com>
503 * jartool.c (MAXPATHLEN): Provide if not defined.
505 2000-12-15 Tom Tromey <tromey@redhat.com>
506 Kelley Cook <kelleycook@home.com>
508 * jargrep.c: Include getopt.h if it exists.
510 * configure, config.h: Rebuilt.
511 * configure.in: Check for getopt.h.
513 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
515 * configure.in (fastjar_warn_cflags): Set when using gcc.
517 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
519 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
521 * compress.c: Include stdlib.h and compress.h.
523 (report_str_error): Make static.
524 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
525 (hrd_inflate_str): Likewise.
527 * compress.h (init_compression, end_compression, init_inflation,
528 end_inflation): Prototype void arguments.
530 * dostime.c (rcsid): Delete.
532 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
533 Make functions static. Cast ctype function argument to `unsigned
534 char'. Add parens in if-stmts. Constify.
535 (Usage): Change into a macro.
536 (jargrep): Remove unused parameter.
538 * jartool.c: Constify. Add parens in if-stmts. Align
539 signed/unsigned char pointers in functions calls using casts.
541 (list_jar): Fix printf format specifier.
542 (usage): Chop long string into bits. Reformat.
544 * pushback.c (rcsid): Delete.
546 2000-12-13 Tom Tromey <tromey@redhat.com>
548 * jartool.c (extract_jar): Use strchr, not index.
550 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
552 * install-defs.sh: Removed.
554 2000-12-10 Robert Lipe <robertlipe@usa.net>
556 * jargrep.c (jargrep): Added null statement after case.
558 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
561 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
563 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
565 * Makefile.am: New file.
566 * Makefile.in: Rebuilt.
567 * aclocal.m4: Likewise.
568 * stamp-h.in: Likewise.
569 * config.h.in: Likewise.
570 * configure.in (AM_INIT_AUTOMAKE): Added.
571 (AM_CONFIG_HEADER): Likewise.
572 (AC_CHECK_HEADERS): Check for sys/param.h
573 (AC_CHECK_LIB): Don't check for system's zlib.
574 (AC_CHECK_FUNC): Removed system's zlib function checks.
575 (ZDEPS. ZLIBS, ZINCS): Added.
576 * configure: Rebuilt.
577 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
578 (init_args, get_next_arg): New function.
579 (use_explicit_list_only, read_names_from_stdin): New global
580 (main): Parse new non standard options 'E' and '@', check and
581 report their usage if necessary. Use init_args and get_next_arg.
583 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
584 (usage): Added `-E' and `-@'.
585 * jartool.h (VERSION): Macro removed.
587 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
589 * fastjar imported from sourceforge.net/projects/fastjar with
590 Bryan Burns' permission. Check `CHANGES' for post import changes.
591 * ChangeLog: Created.
593 * mkinstalldirs: Likewise.