1 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
4 * Makefile.am: Force fastjar.info to be built in build directory.
5 * Makefile.in: Regenerate.
7 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
9 * Makefile.am: Rename jar binary to fastjar.
10 * Makefile.in: Regenerate.
11 * fastjar.texi: Rename references to jar binary with fastjar.
13 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
15 * jartool.c (main): Ensure that only one of ftruncate and _chsize
18 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
21 * configure.ac: Check for ftruncate() and _chsize().
22 * jartool.c (main): Use _chsize if ftruncate not available.
23 * configure, config.h.in: Rebuilt.
25 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
27 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
29 2004-07-07 Matthias Klose <doko@debian.org>
31 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
32 * Makefile.in: Regenerate.
34 2004-07-06 Matthias Klose <doko@debian.org>
36 * Makefile.in: Regenerate.
37 * fastjar.texi: Update for '-u'.
39 2004-07-06 Casey Marshall <csm@gnu.org>
43 (jar_SOURCES): added shift.c, shift.h.
44 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
48 (write_data): new function.
49 (compress_file): call write_data.
52 Updated copyright year.
53 (progname): new variable.
54 (end_of_entries): new variable.
55 (main): open and read file when updating.
56 (find_entry): new function.
57 (looks_like_dir): new function.
58 (read_entries): new function.
59 (make_manifest): added parameter `updating'.
60 Call `add_file_to_jar' with `updating'.
61 (add_to_jar_with_dir): added parameter `updating'.
62 Call `add_to_jar' with `updating'.
63 (add_to_jar): added parameter `updating'.
64 Call `add_file_to_jar' with `updating'.
65 Don't add directories if they already exist.
66 (add_file_to_jar): added parameter `updating'.
67 Update entries if they already exist.
70 Added #ifndef __FASTJAR_JARTOOL_H__.
71 (struct zipentry): added `flags'.
78 (CEN_FLAGS): new constant.
80 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
82 * Makefile.am: Silence two automake warnings.
83 * Makefile.in: Regenerate.
85 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
88 * configure.ac: Add check for long long.
89 * jartool.h: Check for long long before using it.
90 * configure: Regenerate
91 * config.h.in: Regenerate.
93 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
95 * acinclude.m4: Quote first argument of AC_DEFUNs.
96 * aclocal.m4: Regenerate with automake 1.8.
97 * Makefile.in: Likewise.
98 * configure: Regenerate.
99 * .cvsignore: New file.
101 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
104 * configure.ac: Parse --enable-generated-files-in-srcdir.
105 * Makefile.am: Copy man and info files to srcdir if requested.
106 * configure: Regenerate.
107 * Makefile.in Regenerate.
109 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
111 * configure.ac: Bump AC_PREREQ to 2.59.
112 * configure: Regenerate.
114 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
116 * configure: Regenerate for config/accross.m4 correction.
118 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
120 * configure.in: Rename file to ...
121 * configure.ac: ... this. Add in AC_PREREQ(2.57)
122 * config.h.in: Regenerate.
123 * aclocal.m4: Regenerate.
124 * Makefile.in: Regenerate.
126 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
128 * jartool.c (make_manifest): Fix off-by-one bug when creating
129 an empty MANIFEST.MF.
131 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
133 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
134 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
135 * aclocal.m4, config.h.in, configure: Likewise.
136 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
138 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
140 * .cvsignore: Delete.
142 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
144 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
146 (fastjar.info): Update target to write to build directory.
147 (%.1): New implicit rule from a .pod file.
150 (jar.pod): New intermediate rule.
151 (grepjar.pod): Likewise.
152 * Makefile.in: Regenerate.
154 2003-08-13 Matthias Klose <doko@debian.org>
156 * fastjar.texi: License manual under the GPL.
157 * Makefile.am: Remove reference to fdl.texi
158 * Makefile.in: Regenerate
160 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
162 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
164 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
166 * README: Note that FastJar is not part of GCC.
168 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
171 * jartool.c (add_to_jar): Return 1 on failure to open file.
172 Split out -C case to:
173 * jartool.c (add_to_jar_with_dir): New function.
175 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
178 * jartool.c (main) Give proper error messages with -C, and
179 check for missing arguments properly. Send error messages
181 * jartool.c (add_to_jar): Make getcwd() call portable,
182 and check for error return.
184 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
186 * fastjar.texi: Remove @ at start of file.
188 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
190 * dostime.c: add #include <stddef.h> for definition of NULL
192 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
194 * fastjar.texi: Update to GFDL 1.2.
196 2003-01-31 Daiki Ueno <ueno@unixuser.org>
198 * jartool.c (extract_jar): Don't lseek to skip extra fields.
199 (consume): If the stream is seekable, do lseek.
201 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
203 * jargrep.c: Include xregex.h from libiberty instead of
204 system regex.h for better portability.
206 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
208 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
209 with a '\0' to guard against the case where the formatted
210 time string is more than the size allowed by the buffer.
212 2003-01-14 Tom Tromey <tromey@redhat.com>
214 * config.h.in: Rebuilt.
216 2002-12-30 DJ Delorie <dj@redhat.com>
218 * Makefile.am (jar.1, grepjar.1): Protect against
219 texi2pod/pod2man failing.
220 * Makefile.in: Regenerated.
222 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
224 * fastjar.texi: Include Cover Texts in man page.
226 2002-12-04 Jakub Jelinek <jakub@redhat.com>
228 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
230 2002-11-23 H.J. Lu <hjl@gnu.org>
232 * acinclude.m4: Include ../config/accross.m4.
233 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
234 (gcc_AC_EXAMINE_OBJECT): Removed.
235 (gcc_AC_C_COMPILE_ENDIAN): Removed.
236 * aclocal.m4; Rebuild.
238 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
239 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
240 * configure: Likewise.
242 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
244 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
245 "creat" to create extracted files.
247 2002-11-11 Tom Tromey <tromey@redhat.com>
249 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
251 (unix2dostime): Handle years before 1980. Correctly compute month
254 2002-11-10 Jakub Jelinek <jakub@redhat.com>
256 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
259 * configure.in (AC_CHECK_HEADERS): Add limits.h.
260 * configure, config.h.in: Rebuilt.
262 2002-11-07 Tom Tromey <tromey@redhat.com>
264 * dostime.c: Rewrote from scratch.
265 * dostime.h (dostime): Removed.
267 2002-10-20 Tom Tromey <tromey@redhat.com>
269 * jartool.c: Use mode 0666 when opening new file.
271 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
273 * jargrep.c (chk_wrd): Remove unused variable(s).
274 * jartool.c (main, create_central_header, list_jar): Likewise.
276 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
278 * configure, config.h.in: Rebuilt.
279 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
281 2002-09-11 Tom Tromey <tromey@redhat.com>
283 * Makefile.in: Rebuilt.
284 * Makefile.am (TEXINFO_TEX): New macro.
285 (info_TEXINFOS): Likewise.
286 (fastjar_TEXINFOS): Likewise.
287 (man_MANS): Likewise.
288 (EXTRA_DIST): Likewise.
289 (my_makei_flags): Likewise.
290 (fastjar.info): New rule.
291 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
292 (TEXINFO_TEX): Likewise.
293 (AUTOMAKE_OPTIONS): Added `cygnus'.
295 2002-09-11 Matthias Klose <doko@debian.org>
297 * Makefile.am: Revert the previous patch.
298 * Makefile.in: Regenerated.
300 2002-09-10 Matthias Klose <doko@debian.org>
303 * Makefile.am: Support building info docs and manpages.
304 * Makefile.in: Regenerated.
305 * configure.in: Set gcc_version.
306 * configure: Regenerated.
307 * jargrep.c: Update usage and help strings.
309 2002-09-09 Tom Tromey <tromey@redhat.com>
311 * jartool.c (mkdir): Define.
312 * config.h.in: Rebuilt.
313 * aclocal.m4, configure: Rebuilt.
314 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
315 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
318 2002-09-04 Tom Tromey <tromey@redhat.com>
320 From greenrd@hotmail.com:
321 * jartool.c (list_jar): Correctly determine when new `filename'
322 buffer must be allocated. Fixes PR java/7830.
324 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
326 * configure.in: Support cross-compiling.
327 * configure: Regenerate.
328 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
329 (gcc_AC_EXAMINE_OBJECT): New.
330 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
332 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
334 * jartool.c (expand_options): Handle tar-style argument list with a
337 2002-02-23 Anthony Green <green@redhat.com>
339 * jartool.c (main): Fix handling of -C.
341 2002-01-30 Tom Tromey <tromey@redhat.com>
343 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
346 2002-01-11 Tom Tromey <tromey@redhat.com>
348 * Makefile.in: Rebuilt.
349 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
351 2002-01-09 Tom Tromey <tromey@redhat.com>
354 * jargrep.h: Removed RCS keywords.
356 * configure, Makefile.in, config.h.in: Rebuilt.
357 * configure.in: Added AM_MAINTAINER_MODE.
358 Don't look for getopt.h. Use `fastjar' as package name.
359 * Makefile.am (INCLUDES): Look in ../include.
360 (LIBIBERTY): New macro.
362 (jar_DEPENDENCIES): Likewise.
363 (grepjar_LDADD): Likewise.
364 (grepjar_DEPENDENCIES): Likewise.
365 * jargrep.c: Removed RCS keywords. Always include getopt.h.
366 (LONG_OPT): New macro.
367 (OPT_HELP): Likewise.
368 (main): Use getopt_long. Let getopt print invalid argument
369 message. Handle --help. Use version().
370 (version): New function.
371 (optarg, optind): Don't declare.
372 (option_vec): New global.
373 (help): New function.
374 (Usage): Updated to GNU standards.
375 * jartool.c: Removed RCS keywords. Include getopt.h.
376 (LONG_OPT): New macro.
377 (OPT_HELP): Likewise.
378 (options): New global.
379 (help): New function.
380 (usage): Print a single line.
381 (version): New function.
382 (expand_options): New function.
383 (main): Use getopt_long and expand_options. Fail if `-u'
384 specified. Changed handling of -f, -m, -V options.
385 (OPTION_STRING): New macro.
386 (version_string): Removed.
388 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
391 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
392 * Makefile.am: Move grepjar to bin_PROGRAMS.
393 * config.h.in: Regenerated.
394 * Makefile.in: Regenerated.
395 * aclocal.m4: Regenerated.
396 * stamp-h.in: Regenerated.
397 * jargrep.c: Eliminate some signed/unsigned and default
398 uninitialized warnings. Use HAVE_STDLIB_H instead of
400 * jartool.c: Likewise.
401 * compress.c: Likewise.
403 2001-09-17 Tom Tromey <tromey@redhat.com>
406 * aclocal.m4, configure, Makefile.in: Rebuilt.
407 * configure.in: Added AC_EXEEXT.
409 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
411 * jatool.c (extract_jar): Account for null termination when determining
412 whether to expand "filename".
414 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
416 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
419 2001-08-27 Tom Tromey <tromey@redhat.com>
421 * jartool.c (jarfile): Remove length limitation.
422 (main): Use jt_strdup when initializing jarfile.
424 2001-07-04 Tom Tromey <tromey@redhat.com>
426 Modified from patch by Julian Hall <jules@acris.co.uk>:
427 * jartool.c (errno): Conditionally declare.
428 (O_BINARY): Conditionally define.
429 (main): Use open, not creat. Use O_BINARY everywhere.
430 (make_manifest): Use O_BINARY.
431 (add_to_jar): Likewise.
433 2001-06-28 Tom Tromey <tromey@redhat.com>
435 * configure: Rebuilt.
436 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
438 2001-05-15 Per Bothner <per@bothner.com>
440 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
442 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
444 * jartool.c (jt_strdup): New function.
445 (get_next_arg): Use jt_strdup instead of strdup.
447 2001-01-21 Tom Tromey <tromey@redhat.com>
449 * Makefile.in: Rebuilt.
450 * Makefile.am (bin_PROGRAMS): Remove grepjar.
451 (EXTRA_PROGRAMS): New macro.
453 2000-12-28 Robert Lipe <robertl@sco.com>
455 * jartool.c (MAXPATHLEN): Provide if not defined.
457 2000-12-15 Tom Tromey <tromey@redhat.com>
458 Kelley Cook <kelleycook@home.com>
460 * jargrep.c: Include getopt.h if it exists.
462 * configure, config.h: Rebuilt.
463 * configure.in: Check for getopt.h.
465 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
467 * configure.in (fastjar_warn_cflags): Set when using gcc.
469 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
471 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
473 * compress.c: Include stdlib.h and compress.h.
475 (report_str_error): Make static.
476 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
477 (hrd_inflate_str): Likewise.
479 * compress.h (init_compression, end_compression, init_inflation,
480 end_inflation): Prototype void arguments.
482 * dostime.c (rcsid): Delete.
484 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
485 Make functions static. Cast ctype function argument to `unsigned
486 char'. Add parens in if-stmts. Constify.
487 (Usage): Change into a macro.
488 (jargrep): Remove unused parameter.
490 * jartool.c: Constify. Add parens in if-stmts. Align
491 signed/unsigned char pointers in functions calls using casts.
493 (list_jar): Fix printf format specifier.
494 (usage): Chop long string into bits. Reformat.
496 * pushback.c (rcsid): Delete.
498 2000-12-13 Tom Tromey <tromey@redhat.com>
500 * jartool.c (extract_jar): Use strchr, not index.
502 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
504 * install-defs.sh: Removed.
506 2000-12-10 Robert Lipe <robertlipe@usa.net>
508 * jargrep.c (jargrep): Added null statement after case.
510 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
513 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
515 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
517 * Makefile.am: New file.
518 * Makefile.in: Rebuilt.
519 * aclocal.m4: Likewise.
520 * stamp-h.in: Likewise.
521 * config.h.in: Likewise.
522 * configure.in (AM_INIT_AUTOMAKE): Added.
523 (AM_CONFIG_HEADER): Likewise.
524 (AC_CHECK_HEADERS): Check for sys/param.h
525 (AC_CHECK_LIB): Don't check for system's zlib.
526 (AC_CHECK_FUNC): Removed system's zlib function checks.
527 (ZDEPS. ZLIBS, ZINCS): Added.
528 * configure: Rebuilt.
529 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
530 (init_args, get_next_arg): New function.
531 (use_explicit_list_only, read_names_from_stdin): New global
532 (main): Parse new non standard options 'E' and '@', check and
533 report their usage if necessary. Use init_args and get_next_arg.
535 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
536 (usage): Added `-E' and `-@'.
537 * jartool.h (VERSION): Macro removed.
539 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
541 * fastjar imported from sourceforge.net/projects/fastjar with
542 Bryan Burns' permission. Check `CHANGES' for post import changes.
543 * ChangeLog: Created.
545 * mkinstalldirs: Likewise.