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