source: gs3-extensions/iiif-servlet/trunk/src/PREPARE-GSDL-AND-COMPILE-CORE.sh@ 36996

Last change on this file since 36996 was 36996, checked in by davidb, 15 months ago

Changes in response to testing out the retrieval of a document sub-section image

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#!/bin/bash
2
3cversion=4.0.3
4pversion=403
5
6# First Cantaloupe checks
7if [ ! -d packages/cantaloupe-$cversion ] ; then
8 cd packages/
9 tar xvzf cantaloupe-$cversion.tar.gz
10 cd ..
11fi
12
13if [ ! -d packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib ] ; then
14 echo "Creating directory: packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib"
15 mkdir "packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib"
16fi
17
18# Now move on to getting Greenstone prepared
19
20echo "Running rsync update on gsdl-src/java"
21rsync -pav gsdl-src/java ../../src/.
22
23echo "Running 'ant compile-core'"
24pushd ../../ && ant compile-core && popd
25
26echo "Copying gsdl3.jar and gutil.jar to Cantaloupe's webapps/WEB-INF/lib/ directory"
27/bin/cp ../../build/gsdl3.jar packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib/gsdl3.jar
28/bin/cp ../../build/gutil.jar packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib/gutil.jar
29
30echo "Topping up with jdbm.jar, xalan.jar and serializer.jar into Cantaloupe's webapps/WEB-INF/lib/ directory"
31/bin/cp ../../web/WEB-INF/lib/jdbm.jar packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib/.
32# The follow two JAR files are only needed if debugging by serializing an XML Node to a string
33/bin/cp ../../web/WEB-INF/lib/xalan.jar packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib/.
34/bin/cp ../../web/WEB-INF/lib/serializer.jar packages/cantaloupe-$cversion/src/main/webapp/WEB-INF/lib/.
35
36echo
37echo "If first time run, or changes made to:"
38echo " (i) ./src (Greenstone specific code for Cantaloupe's src directory)"
39echo " (ii) ./cantaloupe-pom$pversion.xml or ./cantaloup.properties"
40echo " (iii) Greenstone's global.properties, log4j.properties, IIIFConfig.xml"
41echo
42echo "then:"
43echo " ./PREPARE-CANTALOUPE.sh"
44
45echo
46echo "Otherwise:"
47echo " ./COMPILE-CANTALOUPE.sh"
48echo
Note: See TracBrowser for help on using the repository browser.