tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: Building modapp for Tomcat4.0 and apache1_3.23
Date Thu, 11 Apr 2002 13:59:56 GMT
"GOMEZ Henri" <hgomez@slib.fr> wrote:

>> Ant is a good choice for java projects, not too bad for c projects
>> and will be veru usefull when playing with gcj.
> 
> And you could still use ant to call make ;)

Yeah. Looks like RPM... So f***ed up... To convert:

#!/bin/sh

If [ -z "$INSTALL_DIR"] INSTALL_DIR=/usr/local/eclipse
If [ -z "$TEMP_DIR" ] TEMP_DIR=build_temp
If [ -z "$SO_NAME" ] SO_NAME=swt.so

mkdir "$TEMP_DIR"
unzip "$INSTALL_DIR/plugins/org.eclipse.swt/swtsrc.zip" -d TEMP_DIR
unzip "$INSTALL_DIR/plugins/org.eclipse.swt/swtjar" -d TEMP_DIR
patch "$TEMP_DIR/org/eclipse/swt/widgets/TabFolder.java" < TabFolder.java
patch "$TEMP_DIR$/org/eclipse/swt/widgets/Widget.java" < Widget.patch
patch -p0 < TreeEditor.java

OLD_DIR=`pwd`
cd $TEMP_DIR
touch `find . -name '*.java'`
touch `find . -name '*.java'`
cp "$OLD_DIR/Makefile .
make -f Makefile
cd "$OLD_DIR"

mv "$TEMP_DIR/$SO_NAME" .
rm -rf "$TEMP_DIR"

It is indeed a very stupid script (three patches? What's wrong with one?),
but I don't have to get idiotic to debug it, it's 1/4 of the original size,
and I don't have to download 1.5 megs of ANT. WHATEVERRRR1!!!

    Pier


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message