OSDN Git Service

a429a6369cb76dae637192c32125e237b933b722
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
2
3         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
4         * configure, aclocal.m4, Makefile.in: Regenerate.
5
6 2004-11-15  Kelley Cook  <kcook@gcc.gnu.org>
7
8         * Makefile.am: Remove -no-dependencies.
9         * Makefile.in: Regenerate.
10
11 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
12
13         * Makefile.am: Define ACLOCAL_AMFLAGS.
14         * acinclude.m4: Remove unnecessary sinclude.
15         * aclocal.m4, Makefile.in, configure: Regenerate (autoreconf 1.9.3).
16
17 2004-09-23  Tom Tromey  <tromey@redhat.com>
18
19         * jartool.c (extract_jar): Unconditionally read extra data in the
20         entry header; don't read it after the file contents.
21
22 2004-08-11  Kelley Cook  <kcook@gcc.gnu.org>
23
24         PR bootstrap/16164
25         * Makefile.am: Force fastjar.info to be built in build directory.
26         * Makefile.in: Regenerate.
27
28 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
29
30         * Makefile.am: Rename jar binary to fastjar.
31         * Makefile.in: Regenerate.
32         * fastjar.texi: Rename references to jar binary with fastjar.
33
34 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
35
36         * jartool.c (main): Ensure that only one of ftruncate and _chsize
37         is used.
38
39 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
40
41         PR 16472
42         * configure.ac: Check for ftruncate() and _chsize().
43         * jartool.c (main): Use _chsize if ftruncate not available.
44         * configure, config.h.in: Rebuilt.
45
46 2004-07-09  Richard Sandiford  <rsandifo@redhat.com>
47
48         * jartool.c (find_entry, looks_like_dir): Remove inline spec.
49
50 2004-07-07  Matthias Klose  <doko@debian.org>
51
52         * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
53         * Makefile.in: Regenerate.
54
55 2004-07-06  Matthias Klose  <doko@debian.org>
56
57         * Makefile.in: Regenerate.
58         * fastjar.texi: Update for '-u'.
59         
60 2004-07-06  Casey Marshall <csm@gnu.org>
61
62         PR 7854
63         * Makefile.am
64         (jar_SOURCES): added shift.c, shift.h.
65         (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
66
67         * compress.c
68         Added FSF copyright.
69         (write_data): new function.
70         (compress_file): call write_data.
71
72         * jartool.c
73         Updated copyright year.
74         (progname): new variable.
75         (end_of_entries): new variable.
76         (main): open and read file when updating.
77         (find_entry): new function.
78         (looks_like_dir): new function.
79         (read_entries): new function.
80         (make_manifest): added parameter `updating'.
81         Call `add_file_to_jar' with `updating'.
82         (add_to_jar_with_dir): added parameter `updating'.
83         Call `add_to_jar' with `updating'.
84         (add_to_jar): added parameter `updating'.
85         Call `add_file_to_jar' with `updating'.
86         Don't add directories if they already exist.
87         (add_file_to_jar): added parameter `updating'.
88         Update entries if they already exist.
89
90         * jartool.h
91         Added #ifndef __FASTJAR_JARTOOL_H__.
92         (struct zipentry): added `flags'.
93
94         * shift.c: new file.
95
96         * shift.h: new file.
97
98         * zipfile.h
99         (CEN_FLAGS): new constant.
100
101 2004-07-05  Kelley Cook  <kcook@gcc.gnu.org>
102
103         * Makefile.am: Silence two automake warnings.
104         * Makefile.in: Regenerate.
105
106 2004-06-25  Kelley Cook  <kcook@gcc.gnu.org>
107
108         PR other/15194
109         * configure.ac: Add check for long long.
110         * jartool.h: Check for long long before using it.
111         * configure: Regenerate
112         * config.h.in: Regenerate.
113
114 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
115
116         * acinclude.m4: Quote first argument of AC_DEFUNs.
117         * aclocal.m4: Regenerate with automake 1.8.
118         * Makefile.in: Likewise.
119         * configure: Regenerate.
120         * .cvsignore: New file.
121
122 2004-04-12  Kelley Cook  <kcook@gcc.gnu.org>
123
124         PR bootstrap/14905
125         * configure.ac: Parse --enable-generated-files-in-srcdir.
126         * Makefile.am: Copy man and info files to srcdir if requested.
127         * configure: Regenerate.
128         * Makefile.in Regenerate.
129
130 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
131
132         * configure.ac: Bump AC_PREREQ to 2.59.
133         * configure: Regenerate.
134
135 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
136
137         * configure: Regenerate for config/accross.m4 correction.
138
139 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
140
141         * configure.in: Rename file to ...
142         * configure.ac: ... this.  Add in AC_PREREQ(2.57)
143         * config.h.in: Regenerate.
144         * aclocal.m4: Regenerate.
145         * Makefile.in: Regenerate.
146
147 2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>
148
149         * jartool.c (make_manifest): Fix off-by-one bug when creating
150         an empty MANIFEST.MF.
151
152 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
153
154         * Makefile.am: Define AM_MAKINFOFLAGS.  Remove Automake 1.4 hack.
155         * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
156         * aclocal.m4, config.h.in, configure: Likewise.
157         * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
158
159 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
160
161         * .cvsignore: Delete.
162
163 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
164
165         * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
166         to match.
167         (fastjar.info): Update target to write to build directory.
168         (%.1): New implicit rule from a .pod file.
169         (jar.1): Delete.
170         (grepjar.1): Delete.
171         (jar.pod): New intermediate rule.
172         (grepjar.pod): Likewise.
173         * Makefile.in: Regenerate.
174
175 2003-08-13  Matthias Klose  <doko@debian.org>
176
177         * fastjar.texi: License manual under the GPL.
178         * Makefile.am: Remove reference to fdl.texi
179         * Makefile.in: Regenerate
180
181 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
182
183         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
184
185 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
186
187         * README: Note that FastJar is not part of GCC.
188
189 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
190
191         PR java/9532
192         * jartool.c (add_to_jar): Return 1 on failure to open file.
193         Split out -C case to:
194         * jartool.c (add_to_jar_with_dir): New function.
195
196 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
197
198         PR java/9532
199         * jartool.c (main) Give proper error messages with -C, and
200         check for missing arguments properly.  Send error messages
201         to stderr.
202         * jartool.c (add_to_jar): Make getcwd() call portable,
203         and check for error return.
204
205 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
206
207         * fastjar.texi: Remove @ at start of file.
208
209 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
210
211         * dostime.c: add #include <stddef.h> for definition of NULL
212
213 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
214
215         * fastjar.texi: Update to GFDL 1.2.
216
217 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
218
219         * jartool.c (extract_jar): Don't lseek to skip extra fields.
220         (consume): If the stream is seekable, do lseek.
221
222 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
223
224         * jargrep.c: Include xregex.h from libiberty instead of
225         system regex.h for better portability.
226
227 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
228
229         * jartool.c (list_jar): Terminate the 'ascii_date' buffer
230         with a '\0' to guard against the case where the formatted
231         time string is more than the size allowed by the buffer.
232
233 2003-01-14  Tom Tromey  <tromey@redhat.com>
234
235         * config.h.in: Rebuilt.
236
237 2002-12-30  DJ Delorie  <dj@redhat.com>
238
239         * Makefile.am (jar.1, grepjar.1): Protect against
240         texi2pod/pod2man failing.
241         * Makefile.in: Regenerated.
242
243 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
244
245         * fastjar.texi: Include Cover Texts in man page.
246
247 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
248
249         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
250
251 2002-11-23  H.J. Lu <hjl@gnu.org>
252
253         * acinclude.m4: Include ../config/accross.m4.
254         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
255         (gcc_AC_EXAMINE_OBJECT): Removed.
256         (gcc_AC_C_COMPILE_ENDIAN): Removed.
257         * aclocal.m4; Rebuild.
258
259         * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
260         Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
261         * configure: Likewise.
262
263 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
264
265         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
266         "creat" to create extracted files.
267
268 2002-11-11  Tom Tromey  <tromey@redhat.com>
269
270         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
271         compute month.
272         (unix2dostime): Handle years before 1980.  Correctly compute month
273         and day of month.
274
275 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
276
277         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
278         non-NULL.
279
280         * configure.in (AC_CHECK_HEADERS): Add limits.h.
281         * configure, config.h.in: Rebuilt.
282
283 2002-11-07  Tom Tromey  <tromey@redhat.com>
284
285         * dostime.c: Rewrote from scratch.
286         * dostime.h (dostime): Removed.
287
288 2002-10-20  Tom Tromey  <tromey@redhat.com>
289
290         * jartool.c: Use mode 0666 when opening new file.
291
292 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
293
294         * jargrep.c (chk_wrd): Remove unused variable(s).
295         * jartool.c (main, create_central_header, list_jar): Likewise.
296
297 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
298
299         * configure, config.h.in: Rebuilt.
300         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
301
302 2002-09-11  Tom Tromey  <tromey@redhat.com>
303
304         * Makefile.in: Rebuilt.
305         * Makefile.am (TEXINFO_TEX): New macro.
306         (info_TEXINFOS): Likewise.
307         (fastjar_TEXINFOS): Likewise.
308         (man_MANS): Likewise.
309         (EXTRA_DIST): Likewise.
310         (my_makei_flags): Likewise.
311         (fastjar.info): New rule.
312         (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
313         (TEXINFO_TEX): Likewise.
314         (AUTOMAKE_OPTIONS): Added `cygnus'.
315
316 2002-09-11  Matthias Klose  <doko@debian.org>
317
318         * Makefile.am: Revert the previous patch.
319         * Makefile.in: Regenerated.
320
321 2002-09-10  Matthias Klose  <doko@debian.org>
322
323         * fastjar.texi: New.
324         * Makefile.am: Support building info docs and manpages.
325         * Makefile.in: Regenerated.
326         * configure.in: Set gcc_version.
327         * configure: Regenerated.
328         * jargrep.c: Update usage and help strings.
329
330 2002-09-09  Tom Tromey  <tromey@redhat.com>
331
332         * jartool.c (mkdir): Define.
333         * config.h.in: Rebuilt.
334         * aclocal.m4, configure: Rebuilt.
335         * acinclude.m4: New file.  Copied gcc_AC_COMPILE_CHECK_SIZEOF,
336         gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
337         aclocal.m4.
338
339 2002-09-04  Tom Tromey  <tromey@redhat.com>
340
341         From greenrd@hotmail.com:
342         * jartool.c (list_jar): Correctly determine when new `filename'
343         buffer must be allocated.  Fixes PR java/7830.
344
345 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
346
347         * configure.in: Support cross-compiling.
348         * configure: Regenerate.
349         * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
350         (gcc_AC_EXAMINE_OBJECT): New.
351         (fastjar_AC_COMPILE_C_BIGENDIAN): New.
352
353 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
354
355         * jartool.c (expand_options): Handle tar-style argument list with a
356         leading "-".
357
358 2002-02-23  Anthony Green  <green@redhat.com>
359
360         * jartool.c (main): Fix handling of -C.
361
362 2002-01-30  Tom Tromey  <tromey@redhat.com>
363
364         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
365         to init_args.
366
367 2002-01-11  Tom Tromey  <tromey@redhat.com>
368
369         * Makefile.in: Rebuilt.
370         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
371
372 2002-01-09  Tom Tromey  <tromey@redhat.com>
373
374         For PR libgcj/5303:
375         * jargrep.h: Removed RCS keywords.
376         (GVERSION): Removed.
377         * configure, Makefile.in, config.h.in: Rebuilt.
378         * configure.in: Added AM_MAINTAINER_MODE.
379         Don't look for getopt.h.  Use `fastjar' as package name.
380         * Makefile.am (INCLUDES): Look in ../include.
381         (LIBIBERTY): New macro.
382         (jar_LDADD): Use it.
383         (jar_DEPENDENCIES): Likewise.
384         (grepjar_LDADD): Likewise.
385         (grepjar_DEPENDENCIES): Likewise.
386         * jargrep.c: Removed RCS keywords.  Always include getopt.h.
387         (LONG_OPT): New macro.
388         (OPT_HELP): Likewise.
389         (main): Use getopt_long.  Let getopt print invalid argument
390         message.  Handle --help.  Use version().
391         (version): New function.
392         (optarg, optind): Don't declare.
393         (option_vec): New global.
394         (help): New function.
395         (Usage): Updated to GNU standards.
396         * jartool.c: Removed RCS keywords.  Include getopt.h.
397         (LONG_OPT): New macro.
398         (OPT_HELP): Likewise.
399         (options): New global.
400         (help): New function.
401         (usage): Print a single line.
402         (version): New function.
403         (expand_options): New function.
404         (main): Use getopt_long and expand_options.  Fail if `-u'
405         specified.  Changed handling of -f, -m, -V options.
406         (OPTION_STRING): New macro.
407         (version_string): Removed.
408
409 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
410
411         PR bootstrap/5117
412         * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
413         * Makefile.am: Move grepjar to bin_PROGRAMS.
414         * config.h.in: Regenerated.
415         * Makefile.in: Regenerated.
416         * aclocal.m4: Regenerated.
417         * stamp-h.in: Regenerated.
418         * jargrep.c: Eliminate some signed/unsigned and default
419         uninitialized warnings. Use HAVE_STDLIB_H instead of
420         STDC_HEADERS macro.
421         * jartool.c: Likewise.
422         * compress.c: Likewise.
423
424 2001-09-17  Tom Tromey  <tromey@redhat.com>
425
426         For PR java/4295:
427         * aclocal.m4, configure, Makefile.in: Rebuilt.
428         * configure.in: Added AC_EXEEXT.
429
430 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
431
432         * jatool.c (extract_jar): Account for null termination when determining
433         whether to expand "filename".
434
435 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
436
437         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
438         Fixes PR java/3949.
439
440 2001-08-27  Tom Tromey  <tromey@redhat.com>
441
442         * jartool.c (jarfile): Remove length limitation.
443         (main): Use jt_strdup when initializing jarfile.
444
445 2001-07-04  Tom Tromey  <tromey@redhat.com>
446
447         Modified from patch by Julian Hall <jules@acris.co.uk>:
448         * jartool.c (errno): Conditionally declare.
449         (O_BINARY): Conditionally define.
450         (main): Use open, not creat.  Use O_BINARY everywhere.
451         (make_manifest): Use O_BINARY.
452         (add_to_jar): Likewise.
453
454 2001-06-28  Tom Tromey  <tromey@redhat.com>
455
456         * configure: Rebuilt.
457         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
458
459 2001-05-15  Per Bothner  <per@bothner.com>
460
461         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
462
463 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
464
465         * jartool.c (jt_strdup): New function.
466         (get_next_arg): Use jt_strdup instead of strdup.
467
468 2001-01-21  Tom Tromey  <tromey@redhat.com>
469
470         * Makefile.in: Rebuilt.
471         * Makefile.am (bin_PROGRAMS): Remove grepjar.
472         (EXTRA_PROGRAMS): New macro.
473
474 2000-12-28  Robert Lipe <robertl@sco.com>
475
476         * jartool.c (MAXPATHLEN): Provide if not defined.
477
478 2000-12-15  Tom Tromey  <tromey@redhat.com>
479             Kelley Cook <kelleycook@home.com>
480
481         * jargrep.c: Include getopt.h if it exists.
482         (optind): Declare.
483         * configure, config.h: Rebuilt.
484         * configure.in: Check for getopt.h.
485
486 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
487
488         * configure.in (fastjar_warn_cflags): Set when using gcc.
489
490         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
491
492 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
493
494         * compress.c: Include stdlib.h and compress.h.
495         (rcsid): Delete.
496         (report_str_error): Make static.
497         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
498         (hrd_inflate_str): Likewise.
499
500         * compress.h (init_compression, end_compression, init_inflation,
501         end_inflation): Prototype void arguments.
502
503         * dostime.c (rcsid): Delete.
504
505         * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
506         Make functions static.  Cast ctype function argument to `unsigned
507         char'.  Add parens in if-stmts.  Constify.
508         (Usage): Change into a macro.
509         (jargrep): Remove unused parameter.
510
511         * jartool.c: Constify.  Add parens in if-stmts.  Align
512         signed/unsigned char pointers in functions calls using casts.
513         (rcsid): Delete.
514         (list_jar): Fix printf format specifier.
515         (usage): Chop long string into bits.  Reformat.
516
517         * pushback.c (rcsid): Delete.
518
519 2000-12-13  Tom Tromey  <tromey@redhat.com>
520
521         * jartool.c (extract_jar): Use strchr, not index.
522
523 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
524
525         * install-defs.sh: Removed.
526
527 2000-12-10  Robert Lipe <robertlipe@usa.net>
528
529         * jargrep.c (jargrep): Added null statement after case.
530
531 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
532
533         * Makefile: Removed.
534         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
535
536 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
537
538         * Makefile.am: New file.
539         * Makefile.in: Rebuilt.
540         * aclocal.m4: Likewise.
541         * stamp-h.in: Likewise.
542         * config.h.in: Likewise.
543         * configure.in (AM_INIT_AUTOMAKE): Added.
544         (AM_CONFIG_HEADER): Likewise.
545         (AC_CHECK_HEADERS): Check for sys/param.h
546         (AC_CHECK_LIB): Don't check for system's zlib.
547         (AC_CHECK_FUNC): Removed system's zlib function checks.
548         (ZDEPS. ZLIBS, ZINCS): Added.
549         * configure: Rebuilt.
550         * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
551         (init_args, get_next_arg): New function.
552         (use_explicit_list_only, read_names_from_stdin): New global
553         (main): Parse new non standard options 'E' and '@', check and
554         report their usage if necessary. Use init_args and get_next_arg.
555         Fixed indentation.
556         (add_to_jar): Don't read directory content if `use_explicit_list_only'.
557         (usage): Added `-E' and `-@'.
558         * jartool.h (VERSION): Macro removed.
559
560 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
561
562         * fastjar imported from sourceforge.net/projects/fastjar with
563         Bryan Burns' permission. Check `CHANGES' for post import changes.
564         * ChangeLog: Created.
565         * NEWS: Likewise.
566         * mkinstalldirs: Likewise.
567         * COPYING: Likewise.
568         * AUTHORS: Likewise.