/[pdpsoft]/branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/thirdparty/flyingsaucer/rebuild.sh
ViewVC logotype

Contents of /branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/thirdparty/flyingsaucer/rebuild.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1596 - (show annotations) (download) (as text)
Wed Mar 31 07:26:39 2010 UTC (11 years, 8 months ago) by wvengen
File MIME type: application/x-shellscript
File size: 1601 byte(s)
* update JavaMail
* update xhtmlrenderer patches
1 #!/bin/sh
2 #
3 # Rebuild xhtmlrenderer from release source or CVS with local patches
4 #
5
6 # either CVS or a url
7 #SOURCE=CVS
8 SOURCE=http://pigeonholdings.com/projects/flyingsaucer/R8/downloads/flyingsaucer-R8-src.zip
9
10 ROOT=`dirname $0`
11 BUILDDIR=/tmp/xhtmlrenderer-build
12
13 # get source
14 if [ -e "$BUILDDIR" ]; then
15 echo "*** Removing existing build directory"
16 rm -Rf "$BUILDDIR"
17 fi
18 mkdir "$BUILDDIR"
19 if [ "$SOURCE" != "CVS" ]; then
20 #echo "*** Downloading release"
21 #rm -f src.zip
22 #wget -q -O src.zip "$SOURCE"
23 echo "*** Extracting source"
24 #unzip -q -d "$BUILDDIR" src.zip && rm -f src.zip
25 unzip -q -d "$BUILDDIR" src.zip
26 else (
27 echo "*** Retrieving CVS head"
28 cd "$BUILDDIR/.."
29 cvs -Q -d :pserver:anoncvs:anoncvs@cvs.dev.java.net:/cvs login
30 cvs -Q -d :pserver:anoncvs@cvs.dev.java.net:/cvs checkout -d "`basename "$BUILDDIR"`" xhtmlrenderer
31 ) fi
32
33 # apply patches
34 for i in $ROOT/*.diff; do
35 # patches starting with xhtmlrenderer-cvs- only for cvs
36 basename "$i" | grep -q '^xhtmlrenderer-cvs-' && [ "$SOURCE" != "CVS" ] && continue
37 basename "$i" | grep -q '^xhtmlrenderer-nocvs-' && [ "$SOURCE" = "CVS" ] && continue
38 # apply
39 patch -l -p0 -d "$BUILDDIR" <"$i"
40 done
41
42 echo "*** Building source"
43 cd "$BUILDDIR"
44 ant jar.core-minimal
45
46 echo "*** Copying output"
47 [ -e "$ROOT/core-renderer-minimal.jar" ] && mv "$ROOT/core-renderer-minimal.jar" "$ROOT/core-renderer-minimal.jar.old"
48 cp "$BUILDDIR/build/core-renderer-minimal.jar" "$ROOT/"
49 cp "$BUILDDIR/lib/"iText*.jar "$ROOT/"
50 [ "`ls "$ROOT"/iText*.jar | wc -l`" -gt 1 ] && echo "WARNING: multiple iText verions found, check build setup"
51
52 echo "*** Done"
53

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28