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