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