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