OSDN Git Service

jar -C fix
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2002-02-23  Anthony Green  <green@redhat.com>
2
3         * jartool.c (main): Fix handling of -C.
4
5 2002-01-30  Tom Tromey  <tromey@redhat.com>
6
7         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
8         to init_args.
9
10 2002-01-11  Tom Tromey  <tromey@redhat.com>
11
12         * Makefile.in: Rebuilt.
13         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
14
15 2002-01-09  Tom Tromey  <tromey@redhat.com>
16
17         For PR libgcj/5303:
18         * jargrep.h: Removed RCS keywords.
19         (GVERSION): Removed.
20         * configure, Makefile.in, config.h.in: Rebuilt.
21         * configure.in: Added AM_MAINTAINER_MODE.
22         Don't look for getopt.h.  Use `fastjar' as package name.
23         * Makefile.am (INCLUDES): Look in ../include.
24         (LIBIBERTY): New macro.
25         (jar_LDADD): Use it.
26         (jar_DEPENDENCIES): Likewise.
27         (grepjar_LDADD): Likewise.
28         (grepjar_DEPENDENCIES): Likewise.
29         * jargrep.c: Removed RCS keywords.  Always include getopt.h.
30         (LONG_OPT): New macro.
31         (OPT_HELP): Likewise.
32         (main): Use getopt_long.  Let getopt print invalid argument
33         message.  Handle --help.  Use version().
34         (version): New function.
35         (optarg, optind): Don't declare.
36         (option_vec): New global.
37         (help): New function.
38         (Usage): Updated to GNU standards.
39         * jartool.c: Removed RCS keywords.  Include getopt.h.
40         (LONG_OPT): New macro.
41         (OPT_HELP): Likewise.
42         (options): New global.
43         (help): New function.
44         (usage): Print a single line.
45         (version): New function.
46         (expand_options): New function.
47         (main): Use getopt_long and expand_options.  Fail if `-u'
48         specified.  Changed handling of -f, -m, -V options.
49         (OPTION_STRING): New macro.
50         (version_string): Removed.
51
52 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
53
54         PR bootstrap/5117
55         * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
56         * Makefile.am: Move grepjar to bin_PROGRAMS.
57         * config.h.in: Regenerated.
58         * Makefile.in: Regenerated.
59         * aclocal.m4: Regenerated.
60         * stamp-h.in: Regenerated.
61         * jargrep.c: Eliminate some signed/unsigned and default
62         uninitialized warnings. Use HAVE_STDLIB_H instead of 
63         STDC_HEADERS macro.
64         * jartool.c: Likewise.
65         * compress.c: Likewise.
66
67 2001-09-17  Tom Tromey  <tromey@redhat.com>
68
69         For PR java/4295:
70         * aclocal.m4, configure, Makefile.in: Rebuilt.
71         * configure.in: Added AC_EXEEXT.
72
73 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
74
75         * jatool.c (extract_jar): Account for null termination when determining
76         whether to expand "filename".
77
78 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
79
80         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
81         Fixes PR java/3949.
82
83 2001-08-27  Tom Tromey  <tromey@redhat.com>
84
85         * jartool.c (jarfile): Remove length limitation.
86         (main): Use jt_strdup when initializing jarfile.
87
88 2001-07-04  Tom Tromey  <tromey@redhat.com>
89
90         Modified from patch by Julian Hall <jules@acris.co.uk>:
91         * jartool.c (errno): Conditionally declare.
92         (O_BINARY): Conditionally define.
93         (main): Use open, not creat.  Use O_BINARY everywhere.
94         (make_manifest): Use O_BINARY.
95         (add_to_jar): Likewise.
96
97 2001-06-28  Tom Tromey  <tromey@redhat.com>
98
99         * configure: Rebuilt.
100         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
101
102 2001-05-15  Per Bothner  <per@bothner.com>
103
104         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
105
106 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
107
108         * jartool.c (jt_strdup): New function.
109         (get_next_arg): Use jt_strdup instead of strdup.
110
111 2001-01-21  Tom Tromey  <tromey@redhat.com>
112
113         * Makefile.in: Rebuilt.
114         * Makefile.am (bin_PROGRAMS): Remove grepjar.
115         (EXTRA_PROGRAMS): New macro.
116
117 2000-12-28  Robert Lipe <robertl@sco.com>
118
119         * jartool.c (MAXPATHLEN): Provide if not defined.
120
121 2000-12-15  Tom Tromey  <tromey@redhat.com>
122             Kelley Cook <kelleycook@home.com>
123
124         * jargrep.c: Include getopt.h if it exists.
125         (optind): Declare.
126         * configure, config.h: Rebuilt.
127         * configure.in: Check for getopt.h.
128
129 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
130
131         * configure.in (fastjar_warn_cflags): Set when using gcc.
132
133         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
134
135 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
136
137         * compress.c: Include stdlib.h and compress.h.
138         (rcsid): Delete.
139         (report_str_error): Make static.
140         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
141         (hrd_inflate_str): Likewise.
142
143         * compress.h (init_compression, end_compression, init_inflation,
144         end_inflation): Prototype void arguments.
145
146         * dostime.c (rcsid): Delete.
147
148         * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
149         Make functions static.  Cast ctype function argument to `unsigned
150         char'.  Add parens in if-stmts.  Constify.
151         (Usage): Change into a macro.
152         (jargrep): Remove unused parameter.
153
154         * jartool.c: Constify.  Add parens in if-stmts.  Align
155         signed/unsigned char pointers in functions calls using casts.
156         (rcsid): Delete.
157         (list_jar): Fix printf format specifier.
158         (usage): Chop long string into bits.  Reformat.
159
160         * pushback.c (rcsid): Delete.
161
162 2000-12-13  Tom Tromey  <tromey@redhat.com>
163
164         * jartool.c (extract_jar): Use strchr, not index.
165
166 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
167
168         * install-defs.sh: Removed.
169
170 2000-12-10  Robert Lipe <robertlipe@usa.net>
171
172         * jargrep.c (jargrep): Added null statement after case.
173
174 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
175
176         * Makefile: Removed.
177         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
178
179 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
180
181         * Makefile.am: New file.
182         * Makefile.in: Rebuilt.
183         * aclocal.m4: Likewise.
184         * stamp-h.in: Likewise.
185         * config.h.in: Likewise.
186         * configure.in (AM_INIT_AUTOMAKE): Added.
187         (AM_CONFIG_HEADER): Likewise.
188         (AC_CHECK_HEADERS): Check for sys/param.h
189         (AC_CHECK_LIB): Don't check for system's zlib.
190         (AC_CHECK_FUNC): Removed system's zlib function checks.
191         (ZDEPS. ZLIBS, ZINCS): Added.
192         * configure: Rebuilt.
193         * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
194         (init_args, get_next_arg): New function.
195         (use_explicit_list_only, read_names_from_stdin): New global
196         (main): Parse new non standard options 'E' and '@', check and
197         report their usage if necessary. Use init_args and get_next_arg.
198         Fixed indentation.
199         (add_to_jar): Don't read directory content if `use_explicit_list_only'.
200         (usage): Added `-E' and `-@'.
201         * jartool.h (VERSION): Macro removed.
202
203 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
204
205         * fastjar imported from sourceforge.net/projects/fastjar with
206         Bryan Burns' permission. Check `CHANGES' for post import changes.
207         * ChangeLog: Created.
208         * NEWS: Likewise.
209         * mkinstalldirs: Likewise.
210         * COPYING: Likewise.
211         * AUTHORS: Likewise.