This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] [fastjar] implement `-u'
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: Casey Marshall <csm at gnu dot org>, java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Jul 2004 23:41:40 +0200
- Subject: Re: [PATCH] [fastjar] implement `-u'
- References: <8765arr5ub.fsf@gnu.org><40E9BC1F.4000702@redhat.com>
Updated the docs, regenerated Makefile.in, checked in.
Matthias
Bryce McKinlay writes:
> OK.
>
> Thanks,
>
> Bryce
>
> Casey Marshall wrote:
>
> >Attached is an attempt to implement `-u' properly in fastjar. It tries
> >to do this in-place; existing entries are overwritten with new
> >entries, and subsequent entries are moved up or down in the file if
> >needed. New entries are appended to th end.
> >
> >2004-05-19 Casey Marshall <csm@gnu.org>
> >
> > * fastjar/Makefile.am
> > (jar_SOURCES): added shift.c, shift.h.
> > (jar_CPPFLAGS): define WITH_SHIFT_DOWN.
> >
> > * fastjar/compress.c
> > Added FSF copyright.
> > (write_data): new function.
> > (compress_file): call write_data.
> >
> > * fastjar/jartool.c
> > Updated copyright year.
> > (progname): new variable.
> > (end_of_entries): new variable.
> > (main): open and read file when updating.
> > (find_entry): new function.
> > (looks_like_dir): new function.
> > (read_entries): new function.
> > (make_manifest): added parameter `updating'.
> > Call `add_file_to_jar' with `updating'.
> > (add_to_jar_with_dir): added parameter `updating'.
> > Call `add_to_jar' with `updating'.
> > (add_to_jar): added parameter `updating'.
> > Call `add_file_to_jar' with `updating'.
> > Don't add directories if they already exist.
> > (add_file_to_jar): added parameter `updating'.
> > Update entries if they already exist.
> >
> > * fastjar/jartool.h
> > Added #ifndef __FASTJAR_JARTOOL_H__.
> > (struct zipentry): added `flags'.
> >
> > * fastjar/shift.c: new file.
> >
> > * fastjar/shift.h: new file.
> >
> > * fastjar/zipfile.h
> > (CEN_FLAGS): new constant.
> >
> >