OSDN Git Service

* README: Note that FastJar is not part of GCC.
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2
3         * README: Note that FastJar is not part of GCC.
4
5 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
6
7         PR java/9532
8         * jartool.c (add_to_jar): Return 1 on failure to open file.
9         Split out -C case to:
10         * jartool.c (add_to_jar_with_dir): New function.
11
12 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
13
14         PR java/9532
15         * jartool.c (main) Give proper error messages with -C, and
16         check for missing arguments properly.  Send error messages
17         to stderr.
18         * jartool.c (add_to_jar): Make getcwd() call portable,
19         and check for error return.
20
21 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
22
23         * fastjar.texi: Remove @ at start of file.
24
25 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
26
27         * dostime.c: add #include <stddef.h> for definition of NULL
28
29 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
30
31         * fastjar.texi: Update to GFDL 1.2.
32
33 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
34
35         * jartool.c (extract_jar): Don't lseek to skip extra fields.
36         (consume): If the stream is seekable, do lseek.
37
38 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
39
40         * jargrep.c: Include xregex.h from libiberty instead of
41         system regex.h for better portability.
42
43 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
44
45         * jartool.c (list_jar): Terminate the 'ascii_date' buffer
46         with a '\0' to guard against the case where the formatted
47         time string is more than the size allowed by the buffer.
48
49 2003-01-14  Tom Tromey  <tromey@redhat.com>
50
51         * config.h.in: Rebuilt.
52
53 2002-12-30  DJ Delorie  <dj@redhat.com>
54
55         * Makefile.am (jar.1, grepjar.1): Protect against
56         texi2pod/pod2man failing.
57         * Makefile.in: Regenerated.
58
59 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
60
61         * fastjar.texi: Include Cover Texts in man page.
62
63 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
64
65         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
66
67 2002-11-23  H.J. Lu <hjl@gnu.org>
68
69         * acinclude.m4: Include ../config/accross.m4.
70         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
71         (gcc_AC_EXAMINE_OBJECT): Removed.
72         (gcc_AC_C_COMPILE_ENDIAN): Removed.
73         * aclocal.m4; Rebuild.
74
75         * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
76         Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
77         * configure: Likewise.
78
79 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
80
81         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
82         "creat" to create extracted files.
83
84 2002-11-11  Tom Tromey  <tromey@redhat.com>
85
86         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
87         compute month.
88         (unix2dostime): Handle years before 1980.  Correctly compute month
89         and day of month.
90
91 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
92
93         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
94         non-NULL.
95
96         * configure.in (AC_CHECK_HEADERS): Add limits.h.
97         * configure, config.h.in: Rebuilt.
98
99 2002-11-07  Tom Tromey  <tromey@redhat.com>
100
101         * dostime.c: Rewrote from scratch.
102         * dostime.h (dostime): Removed.
103
104 2002-10-20  Tom Tromey  <tromey@redhat.com>
105
106         * jartool.c: Use mode 0666 when opening new file.
107
108 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
109
110         * jargrep.c (chk_wrd): Remove unused variable(s).
111         * jartool.c (main, create_central_header, list_jar): Likewise.
112
113 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
114
115         * configure, config.h.in: Rebuilt.
116         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
117
118 2002-09-11  Tom Tromey  <tromey@redhat.com>
119
120         * Makefile.in: Rebuilt.
121         * Makefile.am (TEXINFO_TEX): New macro.
122         (info_TEXINFOS): Likewise.
123         (fastjar_TEXINFOS): Likewise.
124         (man_MANS): Likewise.
125         (EXTRA_DIST): Likewise.
126         (my_makei_flags): Likewise.
127         (fastjar.info): New rule.
128         (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
129         (TEXINFO_TEX): Likewise.
130         (AUTOMAKE_OPTIONS): Added `cygnus'.
131
132 2002-09-11  Matthias Klose  <doko@debian.org>
133
134         * Makefile.am: Revert the previous patch.
135         * Makefile.in: Regenerated.
136
137 2002-09-10  Matthias Klose  <doko@debian.org>
138
139         * fastjar.texi: New.
140         * Makefile.am: Support building info docs and manpages.
141         * Makefile.in: Regenerated.
142         * configure.in: Set gcc_version.
143         * configure: Regenerated.
144         * jargrep.c: Update usage and help strings.
145
146 2002-09-09  Tom Tromey  <tromey@redhat.com>
147
148         * jartool.c (mkdir): Define.
149         * config.h.in: Rebuilt.
150         * aclocal.m4, configure: Rebuilt.
151         * acinclude.m4: New file.  Copied gcc_AC_COMPILE_CHECK_SIZEOF,
152         gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
153         aclocal.m4.
154
155 2002-09-04  Tom Tromey  <tromey@redhat.com>
156
157         From greenrd@hotmail.com:
158         * jartool.c (list_jar): Correctly determine when new `filename'
159         buffer must be allocated.  Fixes PR java/7830.
160
161 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
162
163         * configure.in: Support cross-compiling.
164         * configure: Regenerate.
165         * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
166         (gcc_AC_EXAMINE_OBJECT): New.
167         (fastjar_AC_COMPILE_C_BIGENDIAN): New.
168
169 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
170
171         * jartool.c (expand_options): Handle tar-style argument list with a
172         leading "-".
173
174 2002-02-23  Anthony Green  <green@redhat.com>
175
176         * jartool.c (main): Fix handling of -C.
177
178 2002-01-30  Tom Tromey  <tromey@redhat.com>
179
180         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
181         to init_args.
182
183 2002-01-11  Tom Tromey  <tromey@redhat.com>
184
185         * Makefile.in: Rebuilt.
186         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
187
188 2002-01-09  Tom Tromey  <tromey@redhat.com>
189
190         For PR libgcj/5303:
191         * jargrep.h: Removed RCS keywords.
192         (GVERSION): Removed.
193         * configure, Makefile.in, config.h.in: Rebuilt.
194         * configure.in: Added AM_MAINTAINER_MODE.
195         Don't look for getopt.h.  Use `fastjar' as package name.
196         * Makefile.am (INCLUDES): Look in ../include.
197         (LIBIBERTY): New macro.
198         (jar_LDADD): Use it.
199         (jar_DEPENDENCIES): Likewise.
200         (grepjar_LDADD): Likewise.
201         (grepjar_DEPENDENCIES): Likewise.
202         * jargrep.c: Removed RCS keywords.  Always include getopt.h.
203         (LONG_OPT): New macro.
204         (OPT_HELP): Likewise.
205         (main): Use getopt_long.  Let getopt print invalid argument
206         message.  Handle --help.  Use version().
207         (version): New function.
208         (optarg, optind): Don't declare.
209         (option_vec): New global.
210         (help): New function.
211         (Usage): Updated to GNU standards.
212         * jartool.c: Removed RCS keywords.  Include getopt.h.
213         (LONG_OPT): New macro.
214         (OPT_HELP): Likewise.
215         (options): New global.
216         (help): New function.
217         (usage): Print a single line.
218         (version): New function.
219         (expand_options): New function.
220         (main): Use getopt_long and expand_options.  Fail if `-u'
221         specified.  Changed handling of -f, -m, -V options.
222         (OPTION_STRING): New macro.
223         (version_string): Removed.
224
225 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
226
227         PR bootstrap/5117
228         * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
229         * Makefile.am: Move grepjar to bin_PROGRAMS.
230         * config.h.in: Regenerated.
231         * Makefile.in: Regenerated.
232         * aclocal.m4: Regenerated.
233         * stamp-h.in: Regenerated.
234         * jargrep.c: Eliminate some signed/unsigned and default
235         uninitialized warnings. Use HAVE_STDLIB_H instead of
236         STDC_HEADERS macro.
237         * jartool.c: Likewise.
238         * compress.c: Likewise.
239
240 2001-09-17  Tom Tromey  <tromey@redhat.com>
241
242         For PR java/4295:
243         * aclocal.m4, configure, Makefile.in: Rebuilt.
244         * configure.in: Added AC_EXEEXT.
245
246 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
247
248         * jatool.c (extract_jar): Account for null termination when determining
249         whether to expand "filename".
250
251 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
252
253         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
254         Fixes PR java/3949.
255
256 2001-08-27  Tom Tromey  <tromey@redhat.com>
257
258         * jartool.c (jarfile): Remove length limitation.
259         (main): Use jt_strdup when initializing jarfile.
260
261 2001-07-04  Tom Tromey  <tromey@redhat.com>
262
263         Modified from patch by Julian Hall <jules@acris.co.uk>:
264         * jartool.c (errno): Conditionally declare.
265         (O_BINARY): Conditionally define.
266         (main): Use open, not creat.  Use O_BINARY everywhere.
267         (make_manifest): Use O_BINARY.
268         (add_to_jar): Likewise.
269
270 2001-06-28  Tom Tromey  <tromey@redhat.com>
271
272         * configure: Rebuilt.
273         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
274
275 2001-05-15  Per Bothner  <per@bothner.com>
276
277         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
278
279 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
280
281         * jartool.c (jt_strdup): New function.
282         (get_next_arg): Use jt_strdup instead of strdup.
283
284 2001-01-21  Tom Tromey  <tromey@redhat.com>
285
286         * Makefile.in: Rebuilt.
287         * Makefile.am (bin_PROGRAMS): Remove grepjar.
288         (EXTRA_PROGRAMS): New macro.
289
290 2000-12-28  Robert Lipe <robertl@sco.com>
291
292         * jartool.c (MAXPATHLEN): Provide if not defined.
293
294 2000-12-15  Tom Tromey  <tromey@redhat.com>
295             Kelley Cook <kelleycook@home.com>
296
297         * jargrep.c: Include getopt.h if it exists.
298         (optind): Declare.
299         * configure, config.h: Rebuilt.
300         * configure.in: Check for getopt.h.
301
302 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
303
304         * configure.in (fastjar_warn_cflags): Set when using gcc.
305
306         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
307
308 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
309
310         * compress.c: Include stdlib.h and compress.h.
311         (rcsid): Delete.
312         (report_str_error): Make static.
313         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
314         (hrd_inflate_str): Likewise.
315
316         * compress.h (init_compression, end_compression, init_inflation,
317         end_inflation): Prototype void arguments.
318
319         * dostime.c (rcsid): Delete.
320
321         * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
322         Make functions static.  Cast ctype function argument to `unsigned
323         char'.  Add parens in if-stmts.  Constify.
324         (Usage): Change into a macro.
325         (jargrep): Remove unused parameter.
326
327         * jartool.c: Constify.  Add parens in if-stmts.  Align
328         signed/unsigned char pointers in functions calls using casts.
329         (rcsid): Delete.
330         (list_jar): Fix printf format specifier.
331         (usage): Chop long string into bits.  Reformat.
332
333         * pushback.c (rcsid): Delete.
334
335 2000-12-13  Tom Tromey  <tromey@redhat.com>
336
337         * jartool.c (extract_jar): Use strchr, not index.
338
339 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
340
341         * install-defs.sh: Removed.
342
343 2000-12-10  Robert Lipe <robertlipe@usa.net>
344
345         * jargrep.c (jargrep): Added null statement after case.
346
347 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
348
349         * Makefile: Removed.
350         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
351
352 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
353
354         * Makefile.am: New file.
355         * Makefile.in: Rebuilt.
356         * aclocal.m4: Likewise.
357         * stamp-h.in: Likewise.
358         * config.h.in: Likewise.
359         * configure.in (AM_INIT_AUTOMAKE): Added.
360         (AM_CONFIG_HEADER): Likewise.
361         (AC_CHECK_HEADERS): Check for sys/param.h
362         (AC_CHECK_LIB): Don't check for system's zlib.
363         (AC_CHECK_FUNC): Removed system's zlib function checks.
364         (ZDEPS. ZLIBS, ZINCS): Added.
365         * configure: Rebuilt.
366         * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
367         (init_args, get_next_arg): New function.
368         (use_explicit_list_only, read_names_from_stdin): New global
369         (main): Parse new non standard options 'E' and '@', check and
370         report their usage if necessary. Use init_args and get_next_arg.
371         Fixed indentation.
372         (add_to_jar): Don't read directory content if `use_explicit_list_only'.
373         (usage): Added `-E' and `-@'.
374         * jartool.h (VERSION): Macro removed.
375
376 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
377
378         * fastjar imported from sourceforge.net/projects/fastjar with
379         Bryan Burns' permission. Check `CHANGES' for post import changes.
380         * ChangeLog: Created.
381         * NEWS: Likewise.
382         * mkinstalldirs: Likewise.
383         * COPYING: Likewise.
384         * AUTHORS: Likewise.