This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
fastjar u command
- To: <rhug-rhats at sources dot redhat dot com>
- Subject: fastjar u command
- From: "Anthony Green" <green at redhat dot com>
- Date: Thu, 25 Oct 2001 18:36:44 -0700
Oops. Per had sent me a patch. Sorry!
AG
----- Original Message -----
From: "Per Bothner" <per@bothner.com>
To: <green@redhat.com>
Cc: "Per Bothner" <per@bothner.com>
Sent: Tuesday, September 18, 2001 6:36 PM
Subject: patch for rhug
> The fastjar 'u' command doesn't work. I considered imlementing it,
> but finally designed against it. Instead, I suggest changing
> the Makefile to use -C.
>
> I also added some extra formatting. I got rid of the parens which
> in some implementations just uselessly forksan extra shell, and
> in the rest are just clutter, IMO. It's your preference of course.
>
> I haven't looked to see if there are other places that also need
> to be fixed.
>
> Index: Makefile.am
> ===================================================================
> RCS file: /cvs/rhug/rhug/jakarta-servletapi/Makefile.am,v
> retrieving revision 1.5
> diff -u -r1.5 Makefile.am
> --- Makefile.am 2001/09/10 01:44:10 1.5
> +++ Makefile.am 2001/09/19 01:31:40
> @@ -156,9 +156,16 @@
> CLASSFILES = $(lib_javax_servlet_la_SOURCES:.java=.class)
>
> $(JARFILE): $(CLASSFILES)
> - (cd upstream/src/share; for x in `find ./ -name \*.class`; do gcjh `echo
$$x | sed "s/\.\///g" | sed "s/.class//g"`; done;)
> - (cd upstream/src/share; jar cf ../../../$@ `find ./ -name \*.class`)
> - (here=`pwd`; cd $(srcdir)/upstream/src/share; jar uf $$here/$@
javax/servlet/http/LocalStrings.properties
javax/servlet/http/LocalStrings_es.properties
javax/servlet/LocalStrings.properties)
> + cd upstream/src/share; \
> + for x in `find ./ -name \*.class`; \
> + do gcjh `echo $$x | sed "s/\.\///g" | sed "s/.class//g"`; done
> + sharesrc=`cd $(srcdir)/upstream/src/share; pwd`;
> + cd upstream/src/share; \
> + jar cf ../../../$@ `find ./ -name \*.class` \
> + -C $$sharesrc \
> + javax/servlet/http/LocalStrings.properties \
> + javax/servlet/http/LocalStrings_es.properties \
> + javax/servlet/LocalStrings.properties
>
> ## Install the headers. It is fairly ugly that we have to do this by
> ## hand.