OSDN Git Service

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