1 2004-07-07 Matthias Klose <doko@debian.org>
3 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
4 * Makefile.in: Regenerate.
6 2004-07-06 Matthias Klose <doko@debian.org>
8 * Makefile.in: Regenerate.
9 * fastjar.texi: Update for '-u'.
11 2004-05-19 Casey Marshall <csm@gnu.org>
15 (jar_SOURCES): added shift.c, shift.h.
16 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
20 (write_data): new function.
21 (compress_file): call write_data.
24 Updated copyright year.
25 (progname): new variable.
26 (end_of_entries): new variable.
27 (main): open and read file when updating.
28 (find_entry): new function.
29 (looks_like_dir): new function.
30 (read_entries): new function.
31 (make_manifest): added parameter `updating'.
32 Call `add_file_to_jar' with `updating'.
33 (add_to_jar_with_dir): added parameter `updating'.
34 Call `add_to_jar' with `updating'.
35 (add_to_jar): added parameter `updating'.
36 Call `add_file_to_jar' with `updating'.
37 Don't add directories if they already exist.
38 (add_file_to_jar): added parameter `updating'.
39 Update entries if they already exist.
42 Added #ifndef __FASTJAR_JARTOOL_H__.
43 (struct zipentry): added `flags'.
50 (CEN_FLAGS): new constant.
52 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
54 * Makefile.am: Silence two automake warnings.
55 * Makefile.in: Regenerate.
57 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
60 * configure.ac: Add check for long long.
61 * jartool.h: Check for long long before using it.
62 * configure: Regenerate
63 * config.h.in: Regenerate.
65 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
67 * acinclude.m4: Quote first argument of AC_DEFUNs.
68 * aclocal.m4: Regenerate with automake 1.8.
69 * Makefile.in: Likewise.
70 * configure: Regenerate.
71 * .cvsignore: New file.
73 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
76 * configure.ac: Parse --enable-generated-files-in-srcdir.
77 * Makefile.am: Copy man and info files to srcdir if requested.
78 * configure: Regenerate.
79 * Makefile.in Regenerate.
81 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
83 * configure.ac: Bump AC_PREREQ to 2.59.
84 * configure: Regenerate.
86 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
88 * configure: Regenerate for config/accross.m4 correction.
90 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
92 * configure.in: Rename file to ...
93 * configure.ac: ... this. Add in AC_PREREQ(2.57)
94 * config.h.in: Regenerate.
95 * aclocal.m4: Regenerate.
96 * Makefile.in: Regenerate.
98 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
100 * jartool.c (make_manifest): Fix off-by-one bug when creating
101 an empty MANIFEST.MF.
103 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
105 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
106 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
107 * aclocal.m4, config.h.in, configure: Likewise.
108 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
110 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
112 * .cvsignore: Delete.
114 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
116 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
118 (fastjar.info): Update target to write to build directory.
119 (%.1): New implicit rule from a .pod file.
122 (jar.pod): New intermediate rule.
123 (grepjar.pod): Likewise.
124 * Makefile.in: Regenerate.
126 2003-08-13 Matthias Klose <doko@debian.org>
128 * fastjar.texi: License manual under the GPL.
129 * Makefile.am: Remove reference to fdl.texi
130 * Makefile.in: Regenerate
132 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
134 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
136 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
138 * README: Note that FastJar is not part of GCC.
140 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
143 * jartool.c (add_to_jar): Return 1 on failure to open file.
144 Split out -C case to:
145 * jartool.c (add_to_jar_with_dir): New function.
147 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
150 * jartool.c (main) Give proper error messages with -C, and
151 check for missing arguments properly. Send error messages
153 * jartool.c (add_to_jar): Make getcwd() call portable,
154 and check for error return.
156 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
158 * fastjar.texi: Remove @ at start of file.
160 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
162 * dostime.c: add #include <stddef.h> for definition of NULL
164 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
166 * fastjar.texi: Update to GFDL 1.2.
168 2003-01-31 Daiki Ueno <ueno@unixuser.org>
170 * jartool.c (extract_jar): Don't lseek to skip extra fields.
171 (consume): If the stream is seekable, do lseek.
173 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
175 * jargrep.c: Include xregex.h from libiberty instead of
176 system regex.h for better portability.
178 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
180 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
181 with a '\0' to guard against the case where the formatted
182 time string is more than the size allowed by the buffer.
184 2003-01-14 Tom Tromey <tromey@redhat.com>
186 * config.h.in: Rebuilt.
188 2002-12-30 DJ Delorie <dj@redhat.com>
190 * Makefile.am (jar.1, grepjar.1): Protect against
191 texi2pod/pod2man failing.
192 * Makefile.in: Regenerated.
194 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
196 * fastjar.texi: Include Cover Texts in man page.
198 2002-12-04 Jakub Jelinek <jakub@redhat.com>
200 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
202 2002-11-23 H.J. Lu <hjl@gnu.org>
204 * acinclude.m4: Include ../config/accross.m4.
205 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
206 (gcc_AC_EXAMINE_OBJECT): Removed.
207 (gcc_AC_C_COMPILE_ENDIAN): Removed.
208 * aclocal.m4; Rebuild.
210 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
211 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
212 * configure: Likewise.
214 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
216 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
217 "creat" to create extracted files.
219 2002-11-11 Tom Tromey <tromey@redhat.com>
221 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
223 (unix2dostime): Handle years before 1980. Correctly compute month
226 2002-11-10 Jakub Jelinek <jakub@redhat.com>
228 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
231 * configure.in (AC_CHECK_HEADERS): Add limits.h.
232 * configure, config.h.in: Rebuilt.
234 2002-11-07 Tom Tromey <tromey@redhat.com>
236 * dostime.c: Rewrote from scratch.
237 * dostime.h (dostime): Removed.
239 2002-10-20 Tom Tromey <tromey@redhat.com>
241 * jartool.c: Use mode 0666 when opening new file.
243 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
245 * jargrep.c (chk_wrd): Remove unused variable(s).
246 * jartool.c (main, create_central_header, list_jar): Likewise.
248 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
250 * configure, config.h.in: Rebuilt.
251 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
253 2002-09-11 Tom Tromey <tromey@redhat.com>
255 * Makefile.in: Rebuilt.
256 * Makefile.am (TEXINFO_TEX): New macro.
257 (info_TEXINFOS): Likewise.
258 (fastjar_TEXINFOS): Likewise.
259 (man_MANS): Likewise.
260 (EXTRA_DIST): Likewise.
261 (my_makei_flags): Likewise.
262 (fastjar.info): New rule.
263 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
264 (TEXINFO_TEX): Likewise.
265 (AUTOMAKE_OPTIONS): Added `cygnus'.
267 2002-09-11 Matthias Klose <doko@debian.org>
269 * Makefile.am: Revert the previous patch.
270 * Makefile.in: Regenerated.
272 2002-09-10 Matthias Klose <doko@debian.org>
275 * Makefile.am: Support building info docs and manpages.
276 * Makefile.in: Regenerated.
277 * configure.in: Set gcc_version.
278 * configure: Regenerated.
279 * jargrep.c: Update usage and help strings.
281 2002-09-09 Tom Tromey <tromey@redhat.com>
283 * jartool.c (mkdir): Define.
284 * config.h.in: Rebuilt.
285 * aclocal.m4, configure: Rebuilt.
286 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
287 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
290 2002-09-04 Tom Tromey <tromey@redhat.com>
292 From greenrd@hotmail.com:
293 * jartool.c (list_jar): Correctly determine when new `filename'
294 buffer must be allocated. Fixes PR java/7830.
296 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
298 * configure.in: Support cross-compiling.
299 * configure: Regenerate.
300 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
301 (gcc_AC_EXAMINE_OBJECT): New.
302 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
304 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
306 * jartool.c (expand_options): Handle tar-style argument list with a
309 2002-02-23 Anthony Green <green@redhat.com>
311 * jartool.c (main): Fix handling of -C.
313 2002-01-30 Tom Tromey <tromey@redhat.com>
315 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
318 2002-01-11 Tom Tromey <tromey@redhat.com>
320 * Makefile.in: Rebuilt.
321 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
323 2002-01-09 Tom Tromey <tromey@redhat.com>
326 * jargrep.h: Removed RCS keywords.
328 * configure, Makefile.in, config.h.in: Rebuilt.
329 * configure.in: Added AM_MAINTAINER_MODE.
330 Don't look for getopt.h. Use `fastjar' as package name.
331 * Makefile.am (INCLUDES): Look in ../include.
332 (LIBIBERTY): New macro.
334 (jar_DEPENDENCIES): Likewise.
335 (grepjar_LDADD): Likewise.
336 (grepjar_DEPENDENCIES): Likewise.
337 * jargrep.c: Removed RCS keywords. Always include getopt.h.
338 (LONG_OPT): New macro.
339 (OPT_HELP): Likewise.
340 (main): Use getopt_long. Let getopt print invalid argument
341 message. Handle --help. Use version().
342 (version): New function.
343 (optarg, optind): Don't declare.
344 (option_vec): New global.
345 (help): New function.
346 (Usage): Updated to GNU standards.
347 * jartool.c: Removed RCS keywords. Include getopt.h.
348 (LONG_OPT): New macro.
349 (OPT_HELP): Likewise.
350 (options): New global.
351 (help): New function.
352 (usage): Print a single line.
353 (version): New function.
354 (expand_options): New function.
355 (main): Use getopt_long and expand_options. Fail if `-u'
356 specified. Changed handling of -f, -m, -V options.
357 (OPTION_STRING): New macro.
358 (version_string): Removed.
360 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
363 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
364 * Makefile.am: Move grepjar to bin_PROGRAMS.
365 * config.h.in: Regenerated.
366 * Makefile.in: Regenerated.
367 * aclocal.m4: Regenerated.
368 * stamp-h.in: Regenerated.
369 * jargrep.c: Eliminate some signed/unsigned and default
370 uninitialized warnings. Use HAVE_STDLIB_H instead of
372 * jartool.c: Likewise.
373 * compress.c: Likewise.
375 2001-09-17 Tom Tromey <tromey@redhat.com>
378 * aclocal.m4, configure, Makefile.in: Rebuilt.
379 * configure.in: Added AC_EXEEXT.
381 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
383 * jatool.c (extract_jar): Account for null termination when determining
384 whether to expand "filename".
386 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
388 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
391 2001-08-27 Tom Tromey <tromey@redhat.com>
393 * jartool.c (jarfile): Remove length limitation.
394 (main): Use jt_strdup when initializing jarfile.
396 2001-07-04 Tom Tromey <tromey@redhat.com>
398 Modified from patch by Julian Hall <jules@acris.co.uk>:
399 * jartool.c (errno): Conditionally declare.
400 (O_BINARY): Conditionally define.
401 (main): Use open, not creat. Use O_BINARY everywhere.
402 (make_manifest): Use O_BINARY.
403 (add_to_jar): Likewise.
405 2001-06-28 Tom Tromey <tromey@redhat.com>
407 * configure: Rebuilt.
408 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
410 2001-05-15 Per Bothner <per@bothner.com>
412 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
414 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
416 * jartool.c (jt_strdup): New function.
417 (get_next_arg): Use jt_strdup instead of strdup.
419 2001-01-21 Tom Tromey <tromey@redhat.com>
421 * Makefile.in: Rebuilt.
422 * Makefile.am (bin_PROGRAMS): Remove grepjar.
423 (EXTRA_PROGRAMS): New macro.
425 2000-12-28 Robert Lipe <robertl@sco.com>
427 * jartool.c (MAXPATHLEN): Provide if not defined.
429 2000-12-15 Tom Tromey <tromey@redhat.com>
430 Kelley Cook <kelleycook@home.com>
432 * jargrep.c: Include getopt.h if it exists.
434 * configure, config.h: Rebuilt.
435 * configure.in: Check for getopt.h.
437 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
439 * configure.in (fastjar_warn_cflags): Set when using gcc.
441 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
443 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
445 * compress.c: Include stdlib.h and compress.h.
447 (report_str_error): Make static.
448 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
449 (hrd_inflate_str): Likewise.
451 * compress.h (init_compression, end_compression, init_inflation,
452 end_inflation): Prototype void arguments.
454 * dostime.c (rcsid): Delete.
456 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
457 Make functions static. Cast ctype function argument to `unsigned
458 char'. Add parens in if-stmts. Constify.
459 (Usage): Change into a macro.
460 (jargrep): Remove unused parameter.
462 * jartool.c: Constify. Add parens in if-stmts. Align
463 signed/unsigned char pointers in functions calls using casts.
465 (list_jar): Fix printf format specifier.
466 (usage): Chop long string into bits. Reformat.
468 * pushback.c (rcsid): Delete.
470 2000-12-13 Tom Tromey <tromey@redhat.com>
472 * jartool.c (extract_jar): Use strchr, not index.
474 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
476 * install-defs.sh: Removed.
478 2000-12-10 Robert Lipe <robertlipe@usa.net>
480 * jargrep.c (jargrep): Added null statement after case.
482 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
485 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
487 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
489 * Makefile.am: New file.
490 * Makefile.in: Rebuilt.
491 * aclocal.m4: Likewise.
492 * stamp-h.in: Likewise.
493 * config.h.in: Likewise.
494 * configure.in (AM_INIT_AUTOMAKE): Added.
495 (AM_CONFIG_HEADER): Likewise.
496 (AC_CHECK_HEADERS): Check for sys/param.h
497 (AC_CHECK_LIB): Don't check for system's zlib.
498 (AC_CHECK_FUNC): Removed system's zlib function checks.
499 (ZDEPS. ZLIBS, ZINCS): Added.
500 * configure: Rebuilt.
501 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
502 (init_args, get_next_arg): New function.
503 (use_explicit_list_only, read_names_from_stdin): New global
504 (main): Parse new non standard options 'E' and '@', check and
505 report their usage if necessary. Use init_args and get_next_arg.
507 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
508 (usage): Added `-E' and `-@'.
509 * jartool.h (VERSION): Macro removed.
511 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
513 * fastjar imported from sourceforge.net/projects/fastjar with
514 Bryan Burns' permission. Check `CHANGES' for post import changes.
515 * ChangeLog: Created.
517 * mkinstalldirs: Likewise.