From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Anthony Green" To: Subject: fastjar u command Date: Thu, 25 Oct 2001 18:31:00 -0000 Message-id: <030401c15dbe$ab8564e0$5be6b4cd@cygnus.com> X-SW-Source: 2001-10/msg00066.html Oops. Per had sent me a patch. Sorry! AG ----- Original Message ----- From: "Per Bothner" To: Cc: "Per Bothner" 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.