1 2003-07-02 Nathanael Nerode <neroden@gcc.gnu.org>
4 * jartool.c (add_to_jar): Return 1 on failure to open file.
6 * jartool.c (add_to_jar_with_dir): New function.
8 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
11 * jartool.c (main) Give proper error messages with -C, and
12 check for missing arguments properly. Send error messages
14 * jartool.c (add_to_jar): Make getcwd() call portable,
15 and check for error return.
17 2003-03-30 Joseph S. Myers <jsm@polyomino.org.uk>
19 * fastjar.texi: Remove @ at start of file.
21 2003-03-10 Mohan Embar <gnustuff@thisiscool.com>
23 * dostime.c: add #include <stddef.h> for definition of NULL
25 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
27 * fastjar.texi: Update to GFDL 1.2.
29 2003-01-31 Daiki Ueno <ueno@unixuser.org>
31 * jartool.c (extract_jar): Don't lseek to skip extra fields.
32 (consume): If the stream is seekable, do lseek.
34 2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
36 * jargrep.c: Include xregex.h from libiberty instead of
37 system regex.h for better portability.
39 2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
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.
45 2003-01-14 Tom Tromey <tromey@redhat.com>
47 * config.h.in: Rebuilt.
49 2002-12-30 DJ Delorie <dj@redhat.com>
51 * Makefile.am (jar.1, grepjar.1): Protect against
52 texi2pod/pod2man failing.
53 * Makefile.in: Regenerated.
55 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
57 * fastjar.texi: Include Cover Texts in man page.
59 2002-12-04 Jakub Jelinek <jakub@redhat.com>
61 * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
63 2002-11-23 H.J. Lu <hjl@gnu.org>
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.
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.
75 2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
77 * jartool.c (extract_jar): Use "open" with O_BINARY instead of
78 "creat" to create extracted files.
80 2002-11-11 Tom Tromey <tromey@redhat.com>
82 * dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
84 (unix2dostime): Handle years before 1980. Correctly compute month
87 2002-11-10 Jakub Jelinek <jakub@redhat.com>
89 * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
92 * configure.in (AC_CHECK_HEADERS): Add limits.h.
93 * configure, config.h.in: Rebuilt.
95 2002-11-07 Tom Tromey <tromey@redhat.com>
97 * dostime.c: Rewrote from scratch.
98 * dostime.h (dostime): Removed.
100 2002-10-20 Tom Tromey <tromey@redhat.com>
102 * jartool.c: Use mode 0666 when opening new file.
104 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
106 * jargrep.c (chk_wrd): Remove unused variable(s).
107 * jartool.c (main, create_central_header, list_jar): Likewise.
109 2002-10-15 Ranjit Mathew <rmathew@hotmail.com>
111 * configure, config.h.in: Rebuilt.
112 * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
114 2002-09-11 Tom Tromey <tromey@redhat.com>
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'.
128 2002-09-11 Matthias Klose <doko@debian.org>
130 * Makefile.am: Revert the previous patch.
131 * Makefile.in: Regenerated.
133 2002-09-10 Matthias Klose <doko@debian.org>
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.
142 2002-09-09 Tom Tromey <tromey@redhat.com>
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
151 2002-09-04 Tom Tromey <tromey@redhat.com>
153 From greenrd@hotmail.com:
154 * jartool.c (list_jar): Correctly determine when new `filename'
155 buffer must be allocated. Fixes PR java/7830.
157 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
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.
165 2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
167 * jartool.c (expand_options): Handle tar-style argument list with a
170 2002-02-23 Anthony Green <green@redhat.com>
172 * jartool.c (main): Fix handling of -C.
174 2002-01-30 Tom Tromey <tromey@redhat.com>
176 * jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
179 2002-01-11 Tom Tromey <tromey@redhat.com>
181 * Makefile.in: Rebuilt.
182 * Makefile.am (AUTOMAKE_OPTIONS): New macro.
184 2002-01-09 Tom Tromey <tromey@redhat.com>
187 * jargrep.h: Removed RCS keywords.
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.
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.
221 2001-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
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
233 * jartool.c: Likewise.
234 * compress.c: Likewise.
236 2001-09-17 Tom Tromey <tromey@redhat.com>
239 * aclocal.m4, configure, Makefile.in: Rebuilt.
240 * configure.in: Added AC_EXEEXT.
242 2001-10-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
244 * jatool.c (extract_jar): Account for null termination when determining
245 whether to expand "filename".
247 2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
249 * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
252 2001-08-27 Tom Tromey <tromey@redhat.com>
254 * jartool.c (jarfile): Remove length limitation.
255 (main): Use jt_strdup when initializing jarfile.
257 2001-07-04 Tom Tromey <tromey@redhat.com>
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.
266 2001-06-28 Tom Tromey <tromey@redhat.com>
268 * configure: Rebuilt.
269 * configure.in: Accept --with-system-zlib. Fixes PR java/3441.
271 2001-05-15 Per Bothner <per@bothner.com>
273 * Makefile.am (bin_PROGRAMS): Renamed from "fastjar" to "jar".
275 2001-05-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
277 * jartool.c (jt_strdup): New function.
278 (get_next_arg): Use jt_strdup instead of strdup.
280 2001-01-21 Tom Tromey <tromey@redhat.com>
282 * Makefile.in: Rebuilt.
283 * Makefile.am (bin_PROGRAMS): Remove grepjar.
284 (EXTRA_PROGRAMS): New macro.
286 2000-12-28 Robert Lipe <robertl@sco.com>
288 * jartool.c (MAXPATHLEN): Provide if not defined.
290 2000-12-15 Tom Tromey <tromey@redhat.com>
291 Kelley Cook <kelleycook@home.com>
293 * jargrep.c: Include getopt.h if it exists.
295 * configure, config.h: Rebuilt.
296 * configure.in: Check for getopt.h.
298 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
300 * configure.in (fastjar_warn_cflags): Set when using gcc.
302 * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
304 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
306 * compress.c: Include stdlib.h and compress.h.
308 (report_str_error): Make static.
309 (ez_inflate_str): Delete unused variable. Add parens in if-stmt.
310 (hrd_inflate_str): Likewise.
312 * compress.h (init_compression, end_compression, init_inflation,
313 end_inflation): Prototype void arguments.
315 * dostime.c (rcsid): Delete.
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.
323 * jartool.c: Constify. Add parens in if-stmts. Align
324 signed/unsigned char pointers in functions calls using casts.
326 (list_jar): Fix printf format specifier.
327 (usage): Chop long string into bits. Reformat.
329 * pushback.c (rcsid): Delete.
331 2000-12-13 Tom Tromey <tromey@redhat.com>
333 * jartool.c (extract_jar): Use strchr, not index.
335 2000-12-11 Alexandre Petit-Bianco <apbianco@cygnus.com>
337 * install-defs.sh: Removed.
339 2000-12-10 Robert Lipe <robertlipe@usa.net>
341 * jargrep.c (jargrep): Added null statement after case.
343 2000-12-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
346 * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
348 Tue Nov 16 15:11:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
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.
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.
372 Tue Nov 14 15:10:44 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
374 * fastjar imported from sourceforge.net/projects/fastjar with
375 Bryan Burns' permission. Check `CHANGES' for post import changes.
376 * ChangeLog: Created.
378 * mkinstalldirs: Likewise.