OSDN Git Service

PR c++/16277
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
2
3         * jartool.c (main): Ensure that only one of ftruncate and _chsize
4         is used.
5
6 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
7
8         PR 16472
9         * configure.ac: Check for ftruncate() and _chsize().
10         * jartool.c (main): Use _chsize if ftruncate not available.
11         * configure, config.h.in: Rebuilt.
12
13 2004-07-09  Richard Sandiford  <rsandifo@redhat.com>
14
15         * jartool.c (find_entry, looks_like_dir): Remove inline spec.
16
17 2004-07-07  Matthias Klose  <doko@debian.org>
18
19         * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
20         * Makefile.in: Regenerate.
21
22 2004-07-06  Matthias Klose  <doko@debian.org>
23
24         * Makefile.in: Regenerate.
25         * fastjar.texi: Update for '-u'.
26         
27 2004-07-06  Casey Marshall <csm@gnu.org>
28
29         PR 7854
30         * Makefile.am
31         (jar_SOURCES): added shift.c, shift.h.
32         (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
33
34         * compress.c
35         Added FSF copyright.
36         (write_data): new function.
37         (compress_file): call write_data.
38
39         * jartool.c
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.
56
57         * jartool.h
58         Added #ifndef __FASTJAR_JARTOOL_H__.
59         (struct zipentry): added `flags'.
60
61         * shift.c: new file.
62
63         * shift.h: new file.
64
65         * zipfile.h
66         (CEN_FLAGS): new constant.
67
68 2004-07-05  Kelley Cook  <kcook@gcc.gnu.org>
69
70         * Makefile.am: Silence two automake warnings.
71         * Makefile.in: Regenerate.
72
73 2004-06-25  Kelley Cook  <kcook@gcc.gnu.org>
74
75         PR other/15194
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.
80
81 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
82
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.
88
89 2004-04-12  Kelley Cook  <kcook@gcc.gnu.org>
90
91         PR bootstrap/14905
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.
96
97 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
98
99         * configure.ac: Bump AC_PREREQ to 2.59.
100         * configure: Regenerate.
101
102 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
103
104         * configure: Regenerate for config/accross.m4 correction.
105
106 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
107
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.
113
114 2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>
115
116         * jartool.c (make_manifest): Fix off-by-one bug when creating
117         an empty MANIFEST.MF.
118
119 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
120
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.
125
126 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
127
128         * .cvsignore: Delete.
129
130 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
131
132         * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
133         to match.
134         (fastjar.info): Update target to write to build directory.
135         (%.1): New implicit rule from a .pod file.
136         (jar.1): Delete.
137         (grepjar.1): Delete.
138         (jar.pod): New intermediate rule.
139         (grepjar.pod): Likewise.
140         * Makefile.in: Regenerate.
141
142 2003-08-13  Matthias Klose  <doko@debian.org>
143
144         * fastjar.texi: License manual under the GPL.
145         * Makefile.am: Remove reference to fdl.texi
146         * Makefile.in: Regenerate
147
148 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
149
150         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
151
152 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
153
154         * README: Note that FastJar is not part of GCC.
155
156 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
157
158         PR java/9532
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.
162
163 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
164
165         PR java/9532
166         * jartool.c (main) Give proper error messages with -C, and
167         check for missing arguments properly.  Send error messages
168         to stderr.
169         * jartool.c (add_to_jar): Make getcwd() call portable,
170         and check for error return.
171
172 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
173
174         * fastjar.texi: Remove @ at start of file.
175
176 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
177
178         * dostime.c: add #include <stddef.h> for definition of NULL
179
180 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
181
182         * fastjar.texi: Update to GFDL 1.2.
183
184 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
185
186         * jartool.c (extract_jar): Don't lseek to skip extra fields.
187         (consume): If the stream is seekable, do lseek.
188
189 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
190
191         * jargrep.c: Include xregex.h from libiberty instead of
192         system regex.h for better portability.
193
194 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
195
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.
199
200 2003-01-14  Tom Tromey  <tromey@redhat.com>
201
202         * config.h.in: Rebuilt.
203
204 2002-12-30  DJ Delorie  <dj@redhat.com>
205
206         * Makefile.am (jar.1, grepjar.1): Protect against
207         texi2pod/pod2man failing.
208         * Makefile.in: Regenerated.
209
210 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
211
212         * fastjar.texi: Include Cover Texts in man page.
213
214 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
215
216         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
217
218 2002-11-23  H.J. Lu <hjl@gnu.org>
219
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.
225
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.
229
230 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
231
232         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
233         "creat" to create extracted files.
234
235 2002-11-11  Tom Tromey  <tromey@redhat.com>
236
237         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
238         compute month.
239         (unix2dostime): Handle years before 1980.  Correctly compute month
240         and day of month.
241
242 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
243
244         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
245         non-NULL.
246
247         * configure.in (AC_CHECK_HEADERS): Add limits.h.
248         * configure, config.h.in: Rebuilt.
249
250 2002-11-07  Tom Tromey  <tromey@redhat.com>
251
252         * dostime.c: Rewrote from scratch.
253         * dostime.h (dostime): Removed.
254
255 2002-10-20  Tom Tromey  <tromey@redhat.com>
256
257         * jartool.c: Use mode 0666 when opening new file.
258
259 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
260
261         * jargrep.c (chk_wrd): Remove unused variable(s).
262         * jartool.c (main, create_central_header, list_jar): Likewise.
263
264 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
265
266         * configure, config.h.in: Rebuilt.
267         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
268
269 2002-09-11  Tom Tromey  <tromey@redhat.com>
270
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'.
282
283 2002-09-11  Matthias Klose  <doko@debian.org>
284
285         * Makefile.am: Revert the previous patch.
286         * Makefile.in: Regenerated.
287
288 2002-09-10  Matthias Klose  <doko@debian.org>
289
290         * fastjar.texi: New.
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.
296
297 2002-09-09  Tom Tromey  <tromey@redhat.com>
298
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
304         aclocal.m4.
305
306 2002-09-04  Tom Tromey  <tromey@redhat.com>
307
308         From greenrd@hotmail.com:
309         * jartool.c (list_jar): Correctly determine when new `filename'
310         buffer must be allocated.  Fixes PR java/7830.
311
312 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
313
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.
319
320 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
321
322         * jartool.c (expand_options): Handle tar-style argument list with a
323         leading "-".
324
325 2002-02-23  Anthony Green  <green@redhat.com>
326
327         * jartool.c (main): Fix handling of -C.
328
329 2002-01-30  Tom Tromey  <tromey@redhat.com>
330
331         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
332         to init_args.
333
334 2002-01-11  Tom Tromey  <tromey@redhat.com>
335
336         * Makefile.in: Rebuilt.
337         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
338
339 2002-01-09  Tom Tromey  <tromey@redhat.com>
340
341         For PR libgcj/5303:
342         * jargrep.h: Removed RCS keywords.
343         (GVERSION): Removed.
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.
349         (jar_LDADD): Use it.
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.
375
376 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
377
378         PR bootstrap/5117
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
387         STDC_HEADERS macro.
388         * jartool.c: Likewise.
389         * compress.c: Likewise.
390
391 2001-09-17  Tom Tromey  <tromey@redhat.com>
392
393         For PR java/4295:
394         * aclocal.m4, configure, Makefile.in: Rebuilt.
395         * configure.in: Added AC_EXEEXT.
396
397 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
398
399         * jatool.c (extract_jar): Account for null termination when determining
400         whether to expand "filename".
401
402 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
403
404         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
405         Fixes PR java/3949.
406
407 2001-08-27  Tom Tromey  <tromey@redhat.com>
408
409         * jartool.c (jarfile): Remove length limitation.
410         (main): Use jt_strdup when initializing jarfile.
411
412 2001-07-04  Tom Tromey  <tromey@redhat.com>
413
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.
420
421 2001-06-28  Tom Tromey  <tromey@redhat.com>
422
423         * configure: Rebuilt.
424         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
425
426 2001-05-15  Per Bothner  <per@bothner.com>
427
428         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
429
430 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
431
432         * jartool.c (jt_strdup): New function.
433         (get_next_arg): Use jt_strdup instead of strdup.
434
435 2001-01-21  Tom Tromey  <tromey@redhat.com>
436
437         * Makefile.in: Rebuilt.
438         * Makefile.am (bin_PROGRAMS): Remove grepjar.
439         (EXTRA_PROGRAMS): New macro.
440
441 2000-12-28  Robert Lipe <robertl@sco.com>
442
443         * jartool.c (MAXPATHLEN): Provide if not defined.
444
445 2000-12-15  Tom Tromey  <tromey@redhat.com>
446             Kelley Cook <kelleycook@home.com>
447
448         * jargrep.c: Include getopt.h if it exists.
449         (optind): Declare.
450         * configure, config.h: Rebuilt.
451         * configure.in: Check for getopt.h.
452
453 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
454
455         * configure.in (fastjar_warn_cflags): Set when using gcc.
456
457         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
458
459 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
460
461         * compress.c: Include stdlib.h and compress.h.
462         (rcsid): Delete.
463         (report_str_error): Make static.
464         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
465         (hrd_inflate_str): Likewise.
466
467         * compress.h (init_compression, end_compression, init_inflation,
468         end_inflation): Prototype void arguments.
469
470         * dostime.c (rcsid): Delete.
471
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.
477
478         * jartool.c: Constify.  Add parens in if-stmts.  Align
479         signed/unsigned char pointers in functions calls using casts.
480         (rcsid): Delete.
481         (list_jar): Fix printf format specifier.
482         (usage): Chop long string into bits.  Reformat.
483
484         * pushback.c (rcsid): Delete.
485
486 2000-12-13  Tom Tromey  <tromey@redhat.com>
487
488         * jartool.c (extract_jar): Use strchr, not index.
489
490 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
491
492         * install-defs.sh: Removed.
493
494 2000-12-10  Robert Lipe <robertlipe@usa.net>
495
496         * jargrep.c (jargrep): Added null statement after case.
497
498 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
499
500         * Makefile: Removed.
501         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
502
503 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
504
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.
522         Fixed indentation.
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.
526
527 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
528
529         * fastjar imported from sourceforge.net/projects/fastjar with
530         Bryan Burns' permission. Check `CHANGES' for post import changes.
531         * ChangeLog: Created.
532         * NEWS: Likewise.
533         * mkinstalldirs: Likewise.
534         * COPYING: Likewise.
535         * AUTHORS: Likewise.