Difference between revisions of "Scripts"

From ARC Wiki
Jump to navigation Jump to search
 
Line 28: Line 28:
 
</pre>
 
</pre>
  
fixdate.sh - executes prepare_deploy and recreates the build directory
+
'''fixdate.sh''' - executes prepare_deploy and recreates the build directory
  
./fixdate.sh /home10/rossetti_work/ROSSETTI/SOURCE
+
<pre>./fixdate.sh /home10/rossetti_work/ROSSETTI/SOURCE</pre>
  
 
prepare_deploy.sh - creates directories and makes a copy of the source files
 
prepare_deploy.sh - creates directories and makes a copy of the source files
  
transform.sh - transforms the files.
+
'''transform.sh''' - transforms the files.
  
./transform.sh /home10/rossetti_work/ROSSETTI/SOURCE
+
<pre>./transform.sh /home10/rossetti_work/ROSSETTI/SOURCE</pre>
  
 
This script has also been broken down into its constituent parts:
 
This script has also been broken down into its constituent parts:
 +
 +
<pre>
  
 
${DEPLOYDIR}/transform-prepare.sh
 
${DEPLOYDIR}/transform-prepare.sh
Line 48: Line 50:
 
${DEPLOYDIR}/transform-rac2html.sh
 
${DEPLOYDIR}/transform-rac2html.sh
 
${DEPLOYDIR}/transform-rdfify.sh
 
${DEPLOYDIR}/transform-rdfify.sh
 +
 +
</pre>
  
 
To view the output of these operations, simply modify this command:
 
To view the output of these operations, simply modify this command:
 +
 +
<pre>
  
 
./transform.sh > transform.out
 
./transform.sh > transform.out
 
grep Exception transform.out
 
grep Exception transform.out
 
+
</pre>
 
Or, more specifically:
 
Or, more specifically:
  
Line 62: Line 68:
  
  
rebuild_index.sh - rebuilds the lucene index and restarts the webapp
+
'''rebuild_index.sh''' - rebuilds the lucene index and restarts the webapp
  
 
./rebuild_index.sh
 
./rebuild_index.sh
  
deploy_to_testsite.sh - copies thefiles in the build directory to the test web server (test.rossettiarchive.org)
+
'''deploy_to_testsite.sh''' - copies thefiles in the build directory to the test web server (test.rossettiarchive.org)
  
 
./deploy_to_testsite.sh
 
./deploy_to_testsite.sh
  
create_thumbs.sh - creates large and small thumbnails for the images in /home10/rossetti/img (also known as ebtdocs/IMAGES)
+
'''create_thumbs.sh''' - creates large and small thumbnails for the images in /home10/rossetti/img (also known as ebtdocs/IMAGES)

Latest revision as of 19:46, 7 October 2008

These are the components of the now-defunct deploy.sh, which generate the archive. To run individual transforms you need to do a few steps, some of them only once. First, go to

/home10/rossetti_tools/deploy

then view the transform.sh script and copy the first portion to the clipboard with Ctrl-C (or just copy it from this)

export JAVA_HOME=/usr/local/j2sdk1_6_0
export BASEDIR=/home10/rossetti_tools/rose2
export DEPLOYDIR=/home10/rossetti_tools/deploy
export ARCHIVEDIR=${DEPLOYDIR}/archive
export PATH=${JAVA_HOME}/bin:${PATH}:${DEPLOYDIR}
export ANT_OPTS=-Xmx1024m
export ANT_HOME=/usr/local/ant-1.7.0
export ANT_CMD=${ANT_HOME}/bin/ant
export CLASSPATH=${DEPLOYDIR}/lib/saxonb8-7-3j/saxon8.jar
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

At the prompt, type Ctrl-V to paste these commands into the terminal window. They should execute as if you typed them in. These commands only have to be done once is the login session.

Then view the transform.sh file again and copy the command you want to perform and paste it into your terminal window. You can do any of these commands as many times as needed after the initial setup above.

validate.sh - validates the source files


./validate.sh /home10/rossetti_work/ROSSETTI/SOURCE

fixdate.sh - executes prepare_deploy and recreates the build directory

./fixdate.sh /home10/rossetti_work/ROSSETTI/SOURCE

prepare_deploy.sh - creates directories and makes a copy of the source files

transform.sh - transforms the files.

./transform.sh /home10/rossetti_work/ROSSETTI/SOURCE

This script has also been broken down into its constituent parts:


${DEPLOYDIR}/transform-prepare.sh
${DEPLOYDIR}/transform-raw.sh
${DEPLOYDIR}/transform-rap.sh
${DEPLOYDIR}/transform-rad.sh
${DEPLOYDIR}/transform-radheader.sh
${DEPLOYDIR}/transform-zoomify.sh
${DEPLOYDIR}/transform-rac2html.sh
${DEPLOYDIR}/transform-rdfify.sh

To view the output of these operations, simply modify this command:


./transform.sh > transform.out
grep Exception transform.out

Or, more specifically:

./transform.sh wait for an error in rac2html ./transform-rac2html.sh ./transform-rdfify.sh


rebuild_index.sh - rebuilds the lucene index and restarts the webapp

./rebuild_index.sh

deploy_to_testsite.sh - copies thefiles in the build directory to the test web server (test.rossettiarchive.org)

./deploy_to_testsite.sh

create_thumbs.sh - creates large and small thumbnails for the images in /home10/rossetti/img (also known as ebtdocs/IMAGES)