root/gs3-extensions/iiif-servlet/trunk/src/PREPARE-GSDL-AND-COMPILE-CORE.sh @ 32889

Revision 32889, 1.2 KB (checked in by davidb, 15 months ago)

Some adjustments after testing

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# First Cantaloupe checks
4if [ ! -d packages/cantaloupe-4.0.2 ] ; then
5    cd packages/
6    tar xvzf cantaloupe-4.0.2.tar.gz
7    cd ..
8fi
9
10if [ ! -d packages/cantaloupe-4.0.2/src/main/webapp/WEB-INF/lib ] ; then
11    echo "Creating directory: packages/cantaloupe-4.0.2/src/main/webapp/WEB-INF/lib"
12    mkdir "packages/cantaloupe-4.0.2/src/main/webapp/WEB-INF/lib"
13fi
14
15# Now move on to getting Greenstone prepared
16
17echo "Running rsync update on gsdl-src/java"
18rsync -pav gsdl-src/java ../../src/.
19
20echo "Running 'ant compile-core'"
21pushd ../../ && ant compile-core && popd
22
23echo "Copying gsdl3.jar and gutil.jar to Cantaloupe's webapps/WEB-INF/lib/ directory"
24/bin/cp ../../build/gsdl3.jar packages/cantaloupe-4.0.2/src/main/webapp/WEB-INF/lib/gsdl3.jar
25/bin/cp ../../build/gutil.jar packages/cantaloupe-4.0.2/src/main/webapp/WEB-INF/lib/gutil.jar
26
27echo
28echo "If first time run, or changes made to:"
29echo "    (i) ./src (Greenstone specific code for Cantaloupe's src directory)"
30echo "   (ii) ./cantaloupe-pom.xml or ./cantaloup.properties"
31echo "  (iii) Greenstone's global.properties, log4j.properties, IIIFConfig.xml"
32echo
33echo "then:"
34echo "  ./PREPARE-CANTALOUPE.sh"
35
36echo
37echo "Otherwise:"
38echo "  ./COMPILE-CANTALOUPE.sh"
39echo
Note: See TracBrowser for help on using the browser.