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