1 2005-03-28 Marcin Dalecki <martin@dalecki.de>
3 * jartool.c (main): Indentation fixlet.
5 (init_args): Don't use K&R style.
7 (get_next_arg): Add explicit '(void)'.
8 (init_headers): Likewise.
11 2005-03-15 Zack Weinberg <zack@codesourcery.com>
13 * Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
14 (BASEVER, DEVPHASE): New variables.
15 (POD2MAN): Adjust setting of --release option.
16 (fastjar.1, grepjar.1, gcc-vers.texi): New rules.
17 * Makefile.in: Regenerate.
18 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
19 * aclocal.m4, configure: Regenerate.
21 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
23 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
24 * configure, aclocal.m4, Makefile.in: Regenerate.
26 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
28 * Makefile.am: Remove -no-dependencies.
29 * Makefile.in: Regenerate.
31 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
33 * Makefile.am: Define ACLOCAL_AMFLAGS.
34 * acinclude.m4: Remove unnecessary sinclude.
35 * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
37 2004-09-23 Tom Tromey <tromey@redhat.com>
39 * jartool.c (extract_jar): Unconditionally read extra data in the
40 entry header; don't read it after the file contents.
42 2004-08-11 Kelley Cook <kcook@gcc.gnu.org>
45 * Makefile.am: Force fastjar.info to be built in build directory.
46 * Makefile.in: Regenerate.
48 2004-07-23 Thomas Fitzsimmons <fitzsim@redhat.com>
50 * Makefile.am: Rename jar binary to fastjar.
51 * Makefile.in: Regenerate.
52 * fastjar.texi: Rename references to jar binary with fastjar.
54 2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
56 * jartool.c (main): Ensure that only one of ftruncate and _chsize
59 2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
62 * configure.ac: Check for ftruncate() and _chsize().
63 * jartool.c (main): Use _chsize if ftruncate not available.
64 * configure, config.h.in: Rebuilt.
66 2004-07-09 Richard Sandiford <rsandifo@redhat.com>
68 * jartool.c (find_entry, looks_like_dir): Remove inline spec.
70 2004-07-07 Matthias Klose <doko@debian.org>
72 * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
73 * Makefile.in: Regenerate.
75 2004-07-06 Matthias Klose <doko@debian.org>
77 * Makefile.in: Regenerate.
78 * fastjar.texi: Update for '-u'.
80 2004-07-06 Casey Marshall <csm@gnu.org>
84 (jar_SOURCES): added shift.c, shift.h.
85 (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
89 (write_data): new function.
90 (compress_file): call write_data.
93 Updated copyright year.
94 (progname): new variable.
95 (end_of_entries): new variable.
96 (main): open and read file when updating.
97 (find_entry): new function.
98 (looks_like_dir): new function.
99 (read_entries): new function.
100 (make_manifest): added parameter `updating'.
101 Call `add_file_to_jar' with `updating'.
102 (add_to_jar_with_dir): added parameter `updating'.
103 Call `add_to_jar' with `updating'.
104 (add_to_jar): added parameter `updating'.
105 Call `add_file_to_jar' with `updating'.
106 Don't add directories if they already exist.
107 (add_file_to_jar): added parameter `updating'.
108 Update entries if they already exist.
111 Added #ifndef __FASTJAR_JARTOOL_H__.
112 (struct zipentry): added `flags'.
119 (CEN_FLAGS): new constant.
121 2004-07-05 Kelley Cook <kcook@gcc.gnu.org>
123 * Makefile.am: Silence two automake warnings.
124 * Makefile.in: Regenerate.
126 2004-06-25 Kelley Cook <kcook@gcc.gnu.org>
129 * configure.ac: Add check for long long.
130 * jartool.h: Check for long long before using it.
131 * configure: Regenerate
132 * config.h.in: Regenerate.
134 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
136 * acinclude.m4: Quote first argument of AC_DEFUNs.
137 * aclocal.m4: Regenerate with automake 1.8.
138 * Makefile.in: Likewise.
139 * configure: Regenerate.
140 * .cvsignore: New file.
142 2004-04-12 Kelley Cook <kcook@gcc.gnu.org>
145 * configure.ac: Parse --enable-generated-files-in-srcdir.
146 * Makefile.am: Copy man and info files to srcdir if requested.
147 * configure: Regenerate.
148 * Makefile.in Regenerate.
150 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
152 * configure.ac: Bump AC_PREREQ to 2.59.
153 * configure: Regenerate.
155 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
157 * configure: Regenerate for config/accross.m4 correction.
159 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
161 * configure.in: Rename file to ...
162 * configure.ac: ... this. Add in AC_PREREQ(2.57)
163 * config.h.in: Regenerate.
164 * aclocal.m4: Regenerate.
165 * Makefile.in: Regenerate.
167 2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
169 * jartool.c (make_manifest): Fix off-by-one bug when creating
170 an empty MANIFEST.MF.
172 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
174 * Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
175 * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
176 * aclocal.m4, config.h.in, configure: Likewise.
177 * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
179 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
181 * .cvsignore: Delete.
183 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
185 * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
187 (fastjar.info): Update target to write to build directory.
188 (%.1): New implicit rule from a .pod file.
191 (jar.pod): New intermediate rule.
192 (grepjar.pod): Likewise.
193 * Makefile.in: Regenerate.
195 2003-08-13 Matthias Klose <doko@debian.org>
197 * fastjar.texi: License manual under the GPL.
198 * Makefile.am: Remove reference to fdl.texi
199 * Makefile.in: Regenerate
201 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
203 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
205 2003-07-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
207 * README: Note that FastJar is not part of GCC.
209 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
212 * jartool.c (add_to_jar): Return 1 on failure to open file.
213 Split out -C case to:
214 * jartool.c (add_to_jar_with_dir): New function.
216 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
219 * jartool.c (main) Give proper error messages with -C, and
220 check for missing arguments properly. Send error messages
222 * jartool.c (add_to_jar): Make getcwd() call portable,
223 and check for error return.
225 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
227 * fastjar.texi: Remove @ at start of file.
229 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
231 * dostime.c: add #include <stddef.h> for definition of NULL
233 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
235 * fastjar.texi: Update to GFDL 1.2.
237 2003-01-31 Daiki Ueno <ueno@unixuser.org>
239 * jartool.c (extract_jar): Don't lseek to skip extra fields.
240 (consume): If the stream is seekable, do lseek.
242 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
244 * jargrep.c: Include xregex.h from libiberty instead of
245 system regex.h for better portability.
247 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
249 * jartool.c (list_jar): Terminate the 'ascii_date' buffer
250 with a '\0' to guard against the case where the formatted
251 time string is more than the size allowed by the buffer.
253 2003-01-14 Tom Tromey <tromey@redhat.com>
255 * config.h.in: Rebuilt.
257 2002-12-30 DJ Delorie <dj@redhat.com>
259 * Makefile.am (jar.1, grepjar.1): Protect against
260 texi2pod/pod2man failing.
261 * Makefile.in: Regenerated.
263 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
265 * fastjar.texi: Include Cover Texts in man page.
267 2002-12-04 Jakub Jelinek <jakub@redhat.com>
269 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
271 2002-11-23 H.J. Lu <hjl@gnu.org>
273 * acinclude.m4: Include ../config/accross.m4.
274 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
275 (gcc_AC_EXAMINE_OBJECT): Removed.
276 (gcc_AC_C_COMPILE_ENDIAN): Removed.
277 * aclocal.m4; Rebuild.
279 * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
280 Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
281 * configure: Likewise.
283 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
285 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
286 "creat" to create extracted files.
288 2002-11-11 Tom Tromey <tromey@redhat.com>
290 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
292 (unix2dostime): Handle years before 1980. Correctly compute month
295 2002-11-10 Jakub Jelinek <jakub@redhat.com>
297 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
300 * configure.in (AC_CHECK_HEADERS): Add limits.h.
301 * configure, config.h.in: Rebuilt.
303 2002-11-07 Tom Tromey <tromey@redhat.com>
305 * dostime.c: Rewrote from scratch.
306 * dostime.h (dostime): Removed.
308 2002-10-20 Tom Tromey <tromey@redhat.com>
310 * jartool.c: Use mode 0666 when opening new file.
312 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
314 * jargrep.c (chk_wrd): Remove unused variable(s).
315 * jartool.c (main, create_central_header, list_jar): Likewise.
317 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
319 * configure, config.h.in: Rebuilt.
320 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
322 2002-09-11 Tom Tromey <tromey@redhat.com>
324 * Makefile.in: Rebuilt.
325 * Makefile.am (TEXINFO_TEX): New macro.
326 (info_TEXINFOS): Likewise.
327 (fastjar_TEXINFOS): Likewise.
328 (man_MANS): Likewise.
329 (EXTRA_DIST): Likewise.
330 (my_makei_flags): Likewise.
331 (fastjar.info): New rule.
332 (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
333 (TEXINFO_TEX): Likewise.
334 (AUTOMAKE_OPTIONS): Added `cygnus'.
336 2002-09-11 Matthias Klose <doko@debian.org>
338 * Makefile.am: Revert the previous patch.
339 * Makefile.in: Regenerated.
341 2002-09-10 Matthias Klose <doko@debian.org>
344 * Makefile.am: Support building info docs and manpages.
345 * Makefile.in: Regenerated.
346 * configure.in: Set gcc_version.
347 * configure: Regenerated.
348 * jargrep.c: Update usage and help strings.
350 2002-09-09 Tom Tromey <tromey@redhat.com>
352 * jartool.c (mkdir): Define.
353 * config.h.in: Rebuilt.
354 * aclocal.m4, configure: Rebuilt.
355 * acinclude.m4: New file. Copied gcc_AC_COMPILE_CHECK_SIZEOF,
356 gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
359 2002-09-04 Tom Tromey <tromey@redhat.com>
361 From greenrd@hotmail.com:
362 * jartool.c (list_jar): Correctly determine when new `filename'
363 buffer must be allocated. Fixes PR java/7830.
365 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
367 * configure.in: Support cross-compiling.
368 * configure: Regenerate.
369 * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
370 (gcc_AC_EXAMINE_OBJECT): New.
371 (fastjar_AC_COMPILE_C_BIGENDIAN): New.
373 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
375 * jartool.c (expand_options): Handle tar-style argument list with a
378 2002-02-23 Anthony Green <green@redhat.com>
380 * jartool.c (main): Fix handling of -C.
382 2002-01-30 Tom Tromey <tromey@redhat.com>
384 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
387 2002-01-11 Tom Tromey <tromey@redhat.com>
389 * Makefile.in: Rebuilt.
390 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
392 2002-01-09 Tom Tromey <tromey@redhat.com>
395 * jargrep.h: Removed RCS keywords.
397 * configure, Makefile.in, config.h.in: Rebuilt.
398 * configure.in: Added AM_MAINTAINER_MODE.
399 Don't look for getopt.h. Use `fastjar' as package name.
400 * Makefile.am (INCLUDES): Look in ../include.
401 (LIBIBERTY): New macro.
403 (jar_DEPENDENCIES): Likewise.
404 (grepjar_LDADD): Likewise.
405 (grepjar_DEPENDENCIES): Likewise.
406 * jargrep.c: Removed RCS keywords. Always include getopt.h.
407 (LONG_OPT): New macro.
408 (OPT_HELP): Likewise.
409 (main): Use getopt_long. Let getopt print invalid argument
410 message. Handle --help. Use version().
411 (version): New function.
412 (optarg, optind): Don't declare.
413 (option_vec): New global.
414 (help): New function.
415 (Usage): Updated to GNU standards.
416 * jartool.c: Removed RCS keywords. Include getopt.h.
417 (LONG_OPT): New macro.
418 (OPT_HELP): Likewise.
419 (options): New global.
420 (help): New function.
421 (usage): Print a single line.
422 (version): New function.
423 (expand_options): New function.
424 (main): Use getopt_long and expand_options. Fail if `-u'
425 specified. Changed handling of -f, -m, -V options.
426 (OPTION_STRING): New macro.
427 (version_string): Removed.
429 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
432 * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
433 * Makefile.am: Move grepjar to bin_PROGRAMS.
434 * config.h.in: Regenerated.
435 * Makefile.in: Regenerated.
436 * aclocal.m4: Regenerated.
437 * stamp-h.in: Regenerated.
438 * jargrep.c: Eliminate some signed/unsigned and default
439 uninitialized warnings. Use HAVE_STDLIB_H instead of
441 * jartool.c: Likewise.
442 * compress.c: Likewise.
444 2001-09-17 Tom Tromey <tromey@redhat.com>
447 * aclocal.m4, configure, Makefile.in: Rebuilt.
448 * configure.in: Added AC_EXEEXT.
450 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
452 * jatool.c (extract_jar): Account for null termination when determining
453 whether to expand "filename".
455 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
457 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
460 2001-08-27 Tom Tromey <tromey@redhat.com>
462 * jartool.c (jarfile): Remove length limitation.
463 (main): Use jt_strdup when initializing jarfile.
465 2001-07-04 Tom Tromey <tromey@redhat.com>
467 Modified from patch by Julian Hall <jules@acris.co.uk>:
468 * jartool.c (errno): Conditionally declare.
469 (O_BINARY): Conditionally define.
470 (main): Use open, not creat. Use O_BINARY everywhere.
471 (make_manifest): Use O_BINARY.
472 (add_to_jar): Likewise.
474 2001-06-28 Tom Tromey <tromey@redhat.com>
476 * configure: Rebuilt.
477 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
479 2001-05-15 Per Bothner <per@bothner.com>
481 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
483 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
485 * jartool.c (jt_strdup): New function.
486 (get_next_arg): Use jt_strdup instead of strdup.
488 2001-01-21 Tom Tromey <tromey@redhat.com>
490 * Makefile.in: Rebuilt.
491 * Makefile.am (bin_PROGRAMS): Remove grepjar.
492 (EXTRA_PROGRAMS): New macro.
494 2000-12-28 Robert Lipe <robertl@sco.com>
496 * jartool.c (MAXPATHLEN): Provide if not defined.
498 2000-12-15 Tom Tromey <tromey@redhat.com>
499 Kelley Cook <kelleycook@home.com>
501 * jargrep.c: Include getopt.h if it exists.
503 * configure, config.h: Rebuilt.
504 * configure.in: Check for getopt.h.
506 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
508 * configure.in (fastjar_warn_cflags): Set when using gcc.
510 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
512 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
514 * compress.c: Include stdlib.h and compress.h.
516 (report_str_error): Make static.
517 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
518 (hrd_inflate_str): Likewise.
520 * compress.h (init_compression, end_compression, init_inflation,
521 end_inflation): Prototype void arguments.
523 * dostime.c (rcsid): Delete.
525 * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
526 Make functions static. Cast ctype function argument to `unsigned
527 char'. Add parens in if-stmts. Constify.
528 (Usage): Change into a macro.
529 (jargrep): Remove unused parameter.
531 * jartool.c: Constify. Add parens in if-stmts. Align
532 signed/unsigned char pointers in functions calls using casts.
534 (list_jar): Fix printf format specifier.
535 (usage): Chop long string into bits. Reformat.
537 * pushback.c (rcsid): Delete.
539 2000-12-13 Tom Tromey <tromey@redhat.com>
541 * jartool.c (extract_jar): Use strchr, not index.
543 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
545 * install-defs.sh: Removed.
547 2000-12-10 Robert Lipe <robertlipe@usa.net>
549 * jargrep.c (jargrep): Added null statement after case.
551 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
554 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
556 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
558 * Makefile.am: New file.
559 * Makefile.in: Rebuilt.
560 * aclocal.m4: Likewise.
561 * stamp-h.in: Likewise.
562 * config.h.in: Likewise.
563 * configure.in (AM_INIT_AUTOMAKE): Added.
564 (AM_CONFIG_HEADER): Likewise.
565 (AC_CHECK_HEADERS): Check for sys/param.h
566 (AC_CHECK_LIB): Don't check for system's zlib.
567 (AC_CHECK_FUNC): Removed system's zlib function checks.
568 (ZDEPS. ZLIBS, ZINCS): Added.
569 * configure: Rebuilt.
570 * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
571 (init_args, get_next_arg): New function.
572 (use_explicit_list_only, read_names_from_stdin): New global
573 (main): Parse new non standard options 'E' and '@', check and
574 report their usage if necessary. Use init_args and get_next_arg.
576 (add_to_jar): Don't read directory content if `use_explicit_list_only'.
577 (usage): Added `-E' and `-@'.
578 * jartool.h (VERSION): Macro removed.
580 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
582 * fastjar imported from sourceforge.net/projects/fastjar with
583 Bryan Burns' permission. Check `CHANGES' for post import changes.
584 * ChangeLog: Created.
586 * mkinstalldirs: Likewise.