OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2005-03-28  Marcin Dalecki  <martin@dalecki.de>
2
3         * jartool.c (main): Indentation fixlet.
4         (add_entry): Likewise.
5         (init_args): Don't use K&R style.
6         (jt_strdup): Likewise.
7         (get_next_arg): Add explicit '(void)'.
8         (init_headers): Likewise.
9         (version): Likewise.
10
11 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
12
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.
20
21 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
22
23         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
24         * configure, aclocal.m4, Makefile.in: Regenerate.
25
26 2004-11-15  Kelley Cook  <kcook@gcc.gnu.org>
27
28         * Makefile.am: Remove -no-dependencies.
29         * Makefile.in: Regenerate.
30
31 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
32
33         * Makefile.am: Define ACLOCAL_AMFLAGS.
34         * acinclude.m4: Remove unnecessary sinclude.
35         * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
36
37 2004-09-23  Tom Tromey  <tromey@redhat.com>
38
39         * jartool.c (extract_jar): Unconditionally read extra data in the
40         entry header; don't read it after the file contents.
41
42 2004-08-11  Kelley Cook  <kcook@gcc.gnu.org>
43
44         PR bootstrap/16164
45         * Makefile.am: Force fastjar.info to be built in build directory.
46         * Makefile.in: Regenerate.
47
48 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
49
50         * Makefile.am: Rename jar binary to fastjar.
51         * Makefile.in: Regenerate.
52         * fastjar.texi: Rename references to jar binary with fastjar.
53
54 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
55
56         * jartool.c (main): Ensure that only one of ftruncate and _chsize
57         is used.
58
59 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
60
61         PR 16472
62         * configure.ac: Check for ftruncate() and _chsize().
63         * jartool.c (main): Use _chsize if ftruncate not available.
64         * configure, config.h.in: Rebuilt.
65
66 2004-07-09  Richard Sandiford  <rsandifo@redhat.com>
67
68         * jartool.c (find_entry, looks_like_dir): Remove inline spec.
69
70 2004-07-07  Matthias Klose  <doko@debian.org>
71
72         * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
73         * Makefile.in: Regenerate.
74
75 2004-07-06  Matthias Klose  <doko@debian.org>
76
77         * Makefile.in: Regenerate.
78         * fastjar.texi: Update for '-u'.
79
80 2004-07-06  Casey Marshall <csm@gnu.org>
81
82         PR 7854
83         * Makefile.am
84         (jar_SOURCES): added shift.c, shift.h.
85         (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
86
87         * compress.c
88         Added FSF copyright.
89         (write_data): new function.
90         (compress_file): call write_data.
91
92         * jartool.c
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.
109
110         * jartool.h
111         Added #ifndef __FASTJAR_JARTOOL_H__.
112         (struct zipentry): added `flags'.
113
114         * shift.c: new file.
115
116         * shift.h: new file.
117
118         * zipfile.h
119         (CEN_FLAGS): new constant.
120
121 2004-07-05  Kelley Cook  <kcook@gcc.gnu.org>
122
123         * Makefile.am: Silence two automake warnings.
124         * Makefile.in: Regenerate.
125
126 2004-06-25  Kelley Cook  <kcook@gcc.gnu.org>
127
128         PR other/15194
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.
133
134 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
135
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.
141
142 2004-04-12  Kelley Cook  <kcook@gcc.gnu.org>
143
144         PR bootstrap/14905
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.
149
150 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
151
152         * configure.ac: Bump AC_PREREQ to 2.59.
153         * configure: Regenerate.
154
155 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
156
157         * configure: Regenerate for config/accross.m4 correction.
158
159 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
160
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.
166
167 2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>
168
169         * jartool.c (make_manifest): Fix off-by-one bug when creating
170         an empty MANIFEST.MF.
171
172 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
173
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.
178
179 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
180
181         * .cvsignore: Delete.
182
183 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
184
185         * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
186         to match.
187         (fastjar.info): Update target to write to build directory.
188         (%.1): New implicit rule from a .pod file.
189         (jar.1): Delete.
190         (grepjar.1): Delete.
191         (jar.pod): New intermediate rule.
192         (grepjar.pod): Likewise.
193         * Makefile.in: Regenerate.
194
195 2003-08-13  Matthias Klose  <doko@debian.org>
196
197         * fastjar.texi: License manual under the GPL.
198         * Makefile.am: Remove reference to fdl.texi
199         * Makefile.in: Regenerate
200
201 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
202
203         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
204
205 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
206
207         * README: Note that FastJar is not part of GCC.
208
209 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
210
211         PR java/9532
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.
215
216 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
217
218         PR java/9532
219         * jartool.c (main) Give proper error messages with -C, and
220         check for missing arguments properly.  Send error messages
221         to stderr.
222         * jartool.c (add_to_jar): Make getcwd() call portable,
223         and check for error return.
224
225 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
226
227         * fastjar.texi: Remove @ at start of file.
228
229 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
230
231         * dostime.c: add #include <stddef.h> for definition of NULL
232
233 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
234
235         * fastjar.texi: Update to GFDL 1.2.
236
237 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
238
239         * jartool.c (extract_jar): Don't lseek to skip extra fields.
240         (consume): If the stream is seekable, do lseek.
241
242 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
243
244         * jargrep.c: Include xregex.h from libiberty instead of
245         system regex.h for better portability.
246
247 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
248
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.
252
253 2003-01-14  Tom Tromey  <tromey@redhat.com>
254
255         * config.h.in: Rebuilt.
256
257 2002-12-30  DJ Delorie  <dj@redhat.com>
258
259         * Makefile.am (jar.1, grepjar.1): Protect against
260         texi2pod/pod2man failing.
261         * Makefile.in: Regenerated.
262
263 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
264
265         * fastjar.texi: Include Cover Texts in man page.
266
267 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
268
269         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
270
271 2002-11-23  H.J. Lu <hjl@gnu.org>
272
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.
278
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.
282
283 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
284
285         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
286         "creat" to create extracted files.
287
288 2002-11-11  Tom Tromey  <tromey@redhat.com>
289
290         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
291         compute month.
292         (unix2dostime): Handle years before 1980.  Correctly compute month
293         and day of month.
294
295 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
296
297         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
298         non-NULL.
299
300         * configure.in (AC_CHECK_HEADERS): Add limits.h.
301         * configure, config.h.in: Rebuilt.
302
303 2002-11-07  Tom Tromey  <tromey@redhat.com>
304
305         * dostime.c: Rewrote from scratch.
306         * dostime.h (dostime): Removed.
307
308 2002-10-20  Tom Tromey  <tromey@redhat.com>
309
310         * jartool.c: Use mode 0666 when opening new file.
311
312 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
313
314         * jargrep.c (chk_wrd): Remove unused variable(s).
315         * jartool.c (main, create_central_header, list_jar): Likewise.
316
317 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
318
319         * configure, config.h.in: Rebuilt.
320         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
321
322 2002-09-11  Tom Tromey  <tromey@redhat.com>
323
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'.
335
336 2002-09-11  Matthias Klose  <doko@debian.org>
337
338         * Makefile.am: Revert the previous patch.
339         * Makefile.in: Regenerated.
340
341 2002-09-10  Matthias Klose  <doko@debian.org>
342
343         * fastjar.texi: New.
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.
349
350 2002-09-09  Tom Tromey  <tromey@redhat.com>
351
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
357         aclocal.m4.
358
359 2002-09-04  Tom Tromey  <tromey@redhat.com>
360
361         From greenrd@hotmail.com:
362         * jartool.c (list_jar): Correctly determine when new `filename'
363         buffer must be allocated.  Fixes PR java/7830.
364
365 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
366
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.
372
373 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
374
375         * jartool.c (expand_options): Handle tar-style argument list with a
376         leading "-".
377
378 2002-02-23  Anthony Green  <green@redhat.com>
379
380         * jartool.c (main): Fix handling of -C.
381
382 2002-01-30  Tom Tromey  <tromey@redhat.com>
383
384         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
385         to init_args.
386
387 2002-01-11  Tom Tromey  <tromey@redhat.com>
388
389         * Makefile.in: Rebuilt.
390         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
391
392 2002-01-09  Tom Tromey  <tromey@redhat.com>
393
394         For PR libgcj/5303:
395         * jargrep.h: Removed RCS keywords.
396         (GVERSION): Removed.
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.
402         (jar_LDADD): Use it.
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.
428
429 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
430
431         PR bootstrap/5117
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
440         STDC_HEADERS macro.
441         * jartool.c: Likewise.
442         * compress.c: Likewise.
443
444 2001-09-17  Tom Tromey  <tromey@redhat.com>
445
446         For PR java/4295:
447         * aclocal.m4, configure, Makefile.in: Rebuilt.
448         * configure.in: Added AC_EXEEXT.
449
450 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
451
452         * jatool.c (extract_jar): Account for null termination when determining
453         whether to expand "filename".
454
455 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
456
457         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
458         Fixes PR java/3949.
459
460 2001-08-27  Tom Tromey  <tromey@redhat.com>
461
462         * jartool.c (jarfile): Remove length limitation.
463         (main): Use jt_strdup when initializing jarfile.
464
465 2001-07-04  Tom Tromey  <tromey@redhat.com>
466
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.
473
474 2001-06-28  Tom Tromey  <tromey@redhat.com>
475
476         * configure: Rebuilt.
477         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
478
479 2001-05-15  Per Bothner  <per@bothner.com>
480
481         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
482
483 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
484
485         * jartool.c (jt_strdup): New function.
486         (get_next_arg): Use jt_strdup instead of strdup.
487
488 2001-01-21  Tom Tromey  <tromey@redhat.com>
489
490         * Makefile.in: Rebuilt.
491         * Makefile.am (bin_PROGRAMS): Remove grepjar.
492         (EXTRA_PROGRAMS): New macro.
493
494 2000-12-28  Robert Lipe <robertl@sco.com>
495
496         * jartool.c (MAXPATHLEN): Provide if not defined.
497
498 2000-12-15  Tom Tromey  <tromey@redhat.com>
499             Kelley Cook <kelleycook@home.com>
500
501         * jargrep.c: Include getopt.h if it exists.
502         (optind): Declare.
503         * configure, config.h: Rebuilt.
504         * configure.in: Check for getopt.h.
505
506 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
507
508         * configure.in (fastjar_warn_cflags): Set when using gcc.
509
510         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
511
512 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
513
514         * compress.c: Include stdlib.h and compress.h.
515         (rcsid): Delete.
516         (report_str_error): Make static.
517         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
518         (hrd_inflate_str): Likewise.
519
520         * compress.h (init_compression, end_compression, init_inflation,
521         end_inflation): Prototype void arguments.
522
523         * dostime.c (rcsid): Delete.
524
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.
530
531         * jartool.c: Constify.  Add parens in if-stmts.  Align
532         signed/unsigned char pointers in functions calls using casts.
533         (rcsid): Delete.
534         (list_jar): Fix printf format specifier.
535         (usage): Chop long string into bits.  Reformat.
536
537         * pushback.c (rcsid): Delete.
538
539 2000-12-13  Tom Tromey  <tromey@redhat.com>
540
541         * jartool.c (extract_jar): Use strchr, not index.
542
543 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
544
545         * install-defs.sh: Removed.
546
547 2000-12-10  Robert Lipe <robertlipe@usa.net>
548
549         * jargrep.c (jargrep): Added null statement after case.
550
551 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
552
553         * Makefile: Removed.
554         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
555
556 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
557
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.
575         Fixed indentation.
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.
579
580 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
581
582         * fastjar imported from sourceforge.net/projects/fastjar with
583         Bryan Burns' permission. Check `CHANGES' for post import changes.
584         * ChangeLog: Created.
585         * NEWS: Likewise.
586         * mkinstalldirs: Likewise.
587         * COPYING: Likewise.
588         * AUTHORS: Likewise.