OSDN Git Service

Add -mdynamic-no-pic to compile flags for gcc. On Mac OS X and Darwin,
[pf3gnuchains/gcc-fork.git] / fastjar / ChangeLog
1 2004-08-11  Kelley Cook  <kcook@gcc.gnu.org>
2
3         PR bootstrap/16164
4         * Makefile.am: Force fastjar.info to be built in build directory.
5         * Makefile.in: Regenerate.
6
7 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
8
9         * Makefile.am: Rename jar binary to fastjar.
10         * Makefile.in: Regenerate.
11         * fastjar.texi: Rename references to jar binary with fastjar.
12
13 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
14
15         * jartool.c (main): Ensure that only one of ftruncate and _chsize
16         is used.
17
18 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
19
20         PR 16472
21         * configure.ac: Check for ftruncate() and _chsize().
22         * jartool.c (main): Use _chsize if ftruncate not available.
23         * configure, config.h.in: Rebuilt.
24
25 2004-07-09  Richard Sandiford  <rsandifo@redhat.com>
26
27         * jartool.c (find_entry, looks_like_dir): Remove inline spec.
28
29 2004-07-07  Matthias Klose  <doko@debian.org>
30
31         * Makefile.am (jar_CPPFLAGS): Add AM_CPPFLAGS.
32         * Makefile.in: Regenerate.
33
34 2004-07-06  Matthias Klose  <doko@debian.org>
35
36         * Makefile.in: Regenerate.
37         * fastjar.texi: Update for '-u'.
38         
39 2004-07-06  Casey Marshall <csm@gnu.org>
40
41         PR 7854
42         * Makefile.am
43         (jar_SOURCES): added shift.c, shift.h.
44         (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
45
46         * compress.c
47         Added FSF copyright.
48         (write_data): new function.
49         (compress_file): call write_data.
50
51         * jartool.c
52         Updated copyright year.
53         (progname): new variable.
54         (end_of_entries): new variable.
55         (main): open and read file when updating.
56         (find_entry): new function.
57         (looks_like_dir): new function.
58         (read_entries): new function.
59         (make_manifest): added parameter `updating'.
60         Call `add_file_to_jar' with `updating'.
61         (add_to_jar_with_dir): added parameter `updating'.
62         Call `add_to_jar' with `updating'.
63         (add_to_jar): added parameter `updating'.
64         Call `add_file_to_jar' with `updating'.
65         Don't add directories if they already exist.
66         (add_file_to_jar): added parameter `updating'.
67         Update entries if they already exist.
68
69         * jartool.h
70         Added #ifndef __FASTJAR_JARTOOL_H__.
71         (struct zipentry): added `flags'.
72
73         * shift.c: new file.
74
75         * shift.h: new file.
76
77         * zipfile.h
78         (CEN_FLAGS): new constant.
79
80 2004-07-05  Kelley Cook  <kcook@gcc.gnu.org>
81
82         * Makefile.am: Silence two automake warnings.
83         * Makefile.in: Regenerate.
84
85 2004-06-25  Kelley Cook  <kcook@gcc.gnu.org>
86
87         PR other/15194
88         * configure.ac: Add check for long long.
89         * jartool.h: Check for long long before using it.
90         * configure: Regenerate
91         * config.h.in: Regenerate.
92
93 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
94
95         * acinclude.m4: Quote first argument of AC_DEFUNs.
96         * aclocal.m4: Regenerate with automake 1.8.
97         * Makefile.in: Likewise.
98         * configure: Regenerate.
99         * .cvsignore: New file.
100
101 2004-04-12  Kelley Cook  <kcook@gcc.gnu.org>
102
103         PR bootstrap/14905
104         * configure.ac: Parse --enable-generated-files-in-srcdir.
105         * Makefile.am: Copy man and info files to srcdir if requested.
106         * configure: Regenerate.
107         * Makefile.in Regenerate.
108
109 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
110
111         * configure.ac: Bump AC_PREREQ to 2.59.
112         * configure: Regenerate.
113
114 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
115
116         * configure: Regenerate for config/accross.m4 correction.
117
118 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
119
120         * configure.in: Rename file to ...
121         * configure.ac: ... this.  Add in AC_PREREQ(2.57)
122         * config.h.in: Regenerate.
123         * aclocal.m4: Regenerate.
124         * Makefile.in: Regenerate.
125
126 2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>
127
128         * jartool.c (make_manifest): Fix off-by-one bug when creating
129         an empty MANIFEST.MF.
130
131 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
132
133         * Makefile.am: Define AM_MAKINFOFLAGS.  Remove Automake 1.4 hack.
134         * Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
135         * aclocal.m4, config.h.in, configure: Likewise.
136         * install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
137
138 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
139
140         * .cvsignore: Delete.
141
142 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
143
144         * Makefile.am (my_make_i_flags): Add $(srcdir) and update comment
145         to match.
146         (fastjar.info): Update target to write to build directory.
147         (%.1): New implicit rule from a .pod file.
148         (jar.1): Delete.
149         (grepjar.1): Delete.
150         (jar.pod): New intermediate rule.
151         (grepjar.pod): Likewise.
152         * Makefile.in: Regenerate.
153
154 2003-08-13  Matthias Klose  <doko@debian.org>
155
156         * fastjar.texi: License manual under the GPL.
157         * Makefile.am: Remove reference to fdl.texi
158         * Makefile.in: Regenerate
159
160 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
161
162         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
163
164 2003-07-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
165
166         * README: Note that FastJar is not part of GCC.
167
168 2003-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>
169
170         PR java/9532
171         * jartool.c (add_to_jar): Return 1 on failure to open file.
172         Split out -C case to:
173         * jartool.c (add_to_jar_with_dir): New function.
174
175 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
176
177         PR java/9532
178         * jartool.c (main) Give proper error messages with -C, and
179         check for missing arguments properly.  Send error messages
180         to stderr.
181         * jartool.c (add_to_jar): Make getcwd() call portable,
182         and check for error return.
183
184 2003-03-30  Joseph S. Myers  <jsm@polyomino.org.uk>
185
186         * fastjar.texi: Remove @ at start of file.
187
188 2003-03-10  Mohan Embar  <gnustuff@thisiscool.com>
189
190         * dostime.c: add #include <stddef.h> for definition of NULL
191
192 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
193
194         * fastjar.texi: Update to GFDL 1.2.
195
196 2003-01-31  Daiki Ueno  <ueno@unixuser.org>
197
198         * jartool.c (extract_jar): Don't lseek to skip extra fields.
199         (consume): If the stream is seekable, do lseek.
200
201 2003-01-28  Ranjit Mathew  <rmathew@hotmail.com>
202
203         * jargrep.c: Include xregex.h from libiberty instead of
204         system regex.h for better portability.
205
206 2003-01-21  Ranjit Mathew  <rmathew@hotmail.com>
207
208         * jartool.c (list_jar): Terminate the 'ascii_date' buffer
209         with a '\0' to guard against the case where the formatted
210         time string is more than the size allowed by the buffer.
211
212 2003-01-14  Tom Tromey  <tromey@redhat.com>
213
214         * config.h.in: Rebuilt.
215
216 2002-12-30  DJ Delorie  <dj@redhat.com>
217
218         * Makefile.am (jar.1, grepjar.1): Protect against
219         texi2pod/pod2man failing.
220         * Makefile.in: Regenerated.
221
222 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
223
224         * fastjar.texi: Include Cover Texts in man page.
225
226 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
227
228         * fastjar.texi (jar @direntry, grepjar @direntry): Add (fastjar).
229
230 2002-11-23  H.J. Lu <hjl@gnu.org>
231
232         * acinclude.m4: Include ../config/accross.m4.
233         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
234         (gcc_AC_EXAMINE_OBJECT): Removed.
235         (gcc_AC_C_COMPILE_ENDIAN): Removed.
236         * aclocal.m4; Rebuild.
237
238         * configure.in: Replace AC_C_BIGENDIAN with AC_C_BIGENDIAN_CROSS.
239         Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
240         * configure: Likewise.
241
242 2002-11-21  Ranjit Mathew <rmathew@hotmail.com>
243
244         * jartool.c (extract_jar): Use "open" with O_BINARY instead of
245         "creat" to create extracted files.
246
247 2002-11-11  Tom Tromey  <tromey@redhat.com>
248
249         * dostime.c (dos2unixtime): Mask for seconds is 0x1f.  Correctly
250         compute month.
251         (unix2dostime): Handle years before 1980.  Correctly compute month
252         and day of month.
253
254 2002-11-10  Jakub Jelinek  <jakub@redhat.com>
255
256         * jartool.c (add_to_jar): Only compare file to jarfile if jarfile is
257         non-NULL.
258
259         * configure.in (AC_CHECK_HEADERS): Add limits.h.
260         * configure, config.h.in: Rebuilt.
261
262 2002-11-07  Tom Tromey  <tromey@redhat.com>
263
264         * dostime.c: Rewrote from scratch.
265         * dostime.h (dostime): Removed.
266
267 2002-10-20  Tom Tromey  <tromey@redhat.com>
268
269         * jartool.c: Use mode 0666 when opening new file.
270
271 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
272
273         * jargrep.c (chk_wrd): Remove unused variable(s).
274         * jartool.c (main, create_central_header, list_jar): Likewise.
275
276 2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>
277
278         * configure, config.h.in: Rebuilt.
279         * configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.
280
281 2002-09-11  Tom Tromey  <tromey@redhat.com>
282
283         * Makefile.in: Rebuilt.
284         * Makefile.am (TEXINFO_TEX): New macro.
285         (info_TEXINFOS): Likewise.
286         (fastjar_TEXINFOS): Likewise.
287         (man_MANS): Likewise.
288         (EXTRA_DIST): Likewise.
289         (my_makei_flags): Likewise.
290         (fastjar.info): New rule.
291         (fastjar_TEXINFOS): Don't mention `$(srcdir)'.
292         (TEXINFO_TEX): Likewise.
293         (AUTOMAKE_OPTIONS): Added `cygnus'.
294
295 2002-09-11  Matthias Klose  <doko@debian.org>
296
297         * Makefile.am: Revert the previous patch.
298         * Makefile.in: Regenerated.
299
300 2002-09-10  Matthias Klose  <doko@debian.org>
301
302         * fastjar.texi: New.
303         * Makefile.am: Support building info docs and manpages.
304         * Makefile.in: Regenerated.
305         * configure.in: Set gcc_version.
306         * configure: Regenerated.
307         * jargrep.c: Update usage and help strings.
308
309 2002-09-09  Tom Tromey  <tromey@redhat.com>
310
311         * jartool.c (mkdir): Define.
312         * config.h.in: Rebuilt.
313         * aclocal.m4, configure: Rebuilt.
314         * acinclude.m4: New file.  Copied gcc_AC_COMPILE_CHECK_SIZEOF,
315         gcc_AC_EXAMINE_OBJECT, and fastjar_AC_COMPILE_C_BIGENDIAN from
316         aclocal.m4.
317
318 2002-09-04  Tom Tromey  <tromey@redhat.com>
319
320         From greenrd@hotmail.com:
321         * jartool.c (list_jar): Correctly determine when new `filename'
322         buffer must be allocated.  Fixes PR java/7830.
323
324 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
325
326         * configure.in: Support cross-compiling.
327         * configure: Regenerate.
328         * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF): New.
329         (gcc_AC_EXAMINE_OBJECT): New.
330         (fastjar_AC_COMPILE_C_BIGENDIAN): New.
331
332 2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
333
334         * jartool.c (expand_options): Handle tar-style argument list with a
335         leading "-".
336
337 2002-02-23  Anthony Green  <green@redhat.com>
338
339         * jartool.c (main): Fix handling of -C.
340
341 2002-01-30  Tom Tromey  <tromey@redhat.com>
342
343         * jartool.c (main): NULL-terminate new_argv.  Pass 0 as argument
344         to init_args.
345
346 2002-01-11  Tom Tromey  <tromey@redhat.com>
347
348         * Makefile.in: Rebuilt.
349         * Makefile.am (AUTOMAKE_OPTIONS): New macro.
350
351 2002-01-09  Tom Tromey  <tromey@redhat.com>
352
353         For PR libgcj/5303:
354         * jargrep.h: Removed RCS keywords.
355         (GVERSION): Removed.
356         * configure, Makefile.in, config.h.in: Rebuilt.
357         * configure.in: Added AM_MAINTAINER_MODE.
358         Don't look for getopt.h.  Use `fastjar' as package name.
359         * Makefile.am (INCLUDES): Look in ../include.
360         (LIBIBERTY): New macro.
361         (jar_LDADD): Use it.
362         (jar_DEPENDENCIES): Likewise.
363         (grepjar_LDADD): Likewise.
364         (grepjar_DEPENDENCIES): Likewise.
365         * jargrep.c: Removed RCS keywords.  Always include getopt.h.
366         (LONG_OPT): New macro.
367         (OPT_HELP): Likewise.
368         (main): Use getopt_long.  Let getopt print invalid argument
369         message.  Handle --help.  Use version().
370         (version): New function.
371         (optarg, optind): Don't declare.
372         (option_vec): New global.
373         (help): New function.
374         (Usage): Updated to GNU standards.
375         * jartool.c: Removed RCS keywords.  Include getopt.h.
376         (LONG_OPT): New macro.
377         (OPT_HELP): Likewise.
378         (options): New global.
379         (help): New function.
380         (usage): Print a single line.
381         (version): New function.
382         (expand_options): New function.
383         (main): Use getopt_long and expand_options.  Fail if `-u'
384         specified.  Changed handling of -f, -m, -V options.
385         (OPTION_STRING): New macro.
386         (version_string): Removed.
387
388 2001-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
389
390         PR bootstrap/5117
391         * configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
392         * Makefile.am: Move grepjar to bin_PROGRAMS.
393         * config.h.in: Regenerated.
394         * Makefile.in: Regenerated.
395         * aclocal.m4: Regenerated.
396         * stamp-h.in: Regenerated.
397         * jargrep.c: Eliminate some signed/unsigned and default
398         uninitialized warnings. Use HAVE_STDLIB_H instead of
399         STDC_HEADERS macro.
400         * jartool.c: Likewise.
401         * compress.c: Likewise.
402
403 2001-09-17  Tom Tromey  <tromey@redhat.com>
404
405         For PR java/4295:
406         * aclocal.m4, configure, Makefile.in: Rebuilt.
407         * configure.in: Added AC_EXEEXT.
408
409 2001-10-12  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
410
411         * jatool.c (extract_jar): Account for null termination when determining
412         whether to expand "filename".
413
414 2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
415
416         * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
417         Fixes PR java/3949.
418
419 2001-08-27  Tom Tromey  <tromey@redhat.com>
420
421         * jartool.c (jarfile): Remove length limitation.
422         (main): Use jt_strdup when initializing jarfile.
423
424 2001-07-04  Tom Tromey  <tromey@redhat.com>
425
426         Modified from patch by Julian Hall <jules@acris.co.uk>:
427         * jartool.c (errno): Conditionally declare.
428         (O_BINARY): Conditionally define.
429         (main): Use open, not creat.  Use O_BINARY everywhere.
430         (make_manifest): Use O_BINARY.
431         (add_to_jar): Likewise.
432
433 2001-06-28  Tom Tromey  <tromey@redhat.com>
434
435         * configure: Rebuilt.
436         * configure.in: Accept --with-system-zlib.  Fixes PR java/3441.
437
438 2001-05-15  Per Bothner  <per@bothner.com>
439
440         * Makefile.am (bin_PROGRAMS):  Renamed from "fastjar" to "jar".
441
442 2001-05-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
443
444         * jartool.c (jt_strdup): New function.
445         (get_next_arg): Use jt_strdup instead of strdup.
446
447 2001-01-21  Tom Tromey  <tromey@redhat.com>
448
449         * Makefile.in: Rebuilt.
450         * Makefile.am (bin_PROGRAMS): Remove grepjar.
451         (EXTRA_PROGRAMS): New macro.
452
453 2000-12-28  Robert Lipe <robertl@sco.com>
454
455         * jartool.c (MAXPATHLEN): Provide if not defined.
456
457 2000-12-15  Tom Tromey  <tromey@redhat.com>
458             Kelley Cook <kelleycook@home.com>
459
460         * jargrep.c: Include getopt.h if it exists.
461         (optind): Declare.
462         * configure, config.h: Rebuilt.
463         * configure.in: Check for getopt.h.
464
465 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
466
467         * configure.in (fastjar_warn_cflags): Set when using gcc.
468
469         * Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
470
471 2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
472
473         * compress.c: Include stdlib.h and compress.h.
474         (rcsid): Delete.
475         (report_str_error): Make static.
476         (ez_inflate_str): Delete unused variable.  Add parens in if-stmt.
477         (hrd_inflate_str): Likewise.
478
479         * compress.h (init_compression, end_compression, init_inflation,
480         end_inflation): Prototype void arguments.
481
482         * dostime.c (rcsid): Delete.
483
484         * jargrep.c: Include ctype.h, stdlib.h, zlib.h and compress.h.
485         Make functions static.  Cast ctype function argument to `unsigned
486         char'.  Add parens in if-stmts.  Constify.
487         (Usage): Change into a macro.
488         (jargrep): Remove unused parameter.
489
490         * jartool.c: Constify.  Add parens in if-stmts.  Align
491         signed/unsigned char pointers in functions calls using casts.
492         (rcsid): Delete.
493         (list_jar): Fix printf format specifier.
494         (usage): Chop long string into bits.  Reformat.
495
496         * pushback.c (rcsid): Delete.
497
498 2000-12-13  Tom Tromey  <tromey@redhat.com>
499
500         * jartool.c (extract_jar): Use strchr, not index.
501
502 2000-12-11  Alexandre Petit-Bianco  <apbianco@cygnus.com>
503
504         * install-defs.sh: Removed.
505
506 2000-12-10  Robert Lipe <robertlipe@usa.net>
507
508         * jargrep.c (jargrep): Added null statement after case.
509
510 2000-12-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
511
512         * Makefile: Removed.
513         * Makefile.in: Rebuilt with `-i' and `--enable-foreign'.
514
515 Tue Nov 16 15:11:36 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
516
517         * Makefile.am: New file.
518         * Makefile.in: Rebuilt.
519         * aclocal.m4: Likewise.
520         * stamp-h.in: Likewise.
521         * config.h.in: Likewise.
522         * configure.in (AM_INIT_AUTOMAKE): Added.
523         (AM_CONFIG_HEADER): Likewise.
524         (AC_CHECK_HEADERS): Check for sys/param.h
525         (AC_CHECK_LIB): Don't check for system's zlib.
526         (AC_CHECK_FUNC): Removed system's zlib function checks.
527         (ZDEPS. ZLIBS, ZINCS): Added.
528         * configure: Rebuilt.
529         * jartool.c (sys/param.h): Conditionally included or define MAXPATHLEN.
530         (init_args, get_next_arg): New function.
531         (use_explicit_list_only, read_names_from_stdin): New global
532         (main): Parse new non standard options 'E' and '@', check and
533         report their usage if necessary. Use init_args and get_next_arg.
534         Fixed indentation.
535         (add_to_jar): Don't read directory content if `use_explicit_list_only'.
536         (usage): Added `-E' and `-@'.
537         * jartool.h (VERSION): Macro removed.
538
539 Tue Nov 14 15:10:44 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
540
541         * fastjar imported from sourceforge.net/projects/fastjar with
542         Bryan Burns' permission. Check `CHANGES' for post import changes.
543         * ChangeLog: Created.
544         * NEWS: Likewise.
545         * mkinstalldirs: Likewise.
546         * COPYING: Likewise.
547         * AUTHORS: Likewise.