OSDN Git Service

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