source: main/trunk/model-sites-dev/von-sparql/collect/nz-natlib-cat/pre-import/RUN_NZ.sh@ 28787

Last change on this file since 28787 was 28787, checked in by ak19, 10 years ago

Scripts to run Java code. DEFAULT one takes no command-line arguments, and goes with whatever the defaults in the Java code are

  • Property svn:executable set to *
File size: 764 bytes
Line 
1#!/bin/bash
2
3full_filename=NZDataFull.xml
4
5if [ ! -f $full_filename ] ; then
6 echo "Did not detect uncompressed MARC-XML file '$full_filename'"
7 echo " => Including ISO-8859-1 character encoding XML processing instruction at start"
8 echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>" > $full_filename
9 echo "<collection xmlns=\"http://www.loc.gov/MARC21/slim\">" >> $full_filename
10
11 echo " => Appending uncompressed data to '$full_filename' ..."
12 gzip -d --stdout pubsnzmetadata.xml.gz >> $full_filename
13 echo "</collection>" >> $full_filename
14 echo " => ... Done"
15
16fi
17
18echo "Splitting '$full_filename', this may take some time ..."
19java -classpath marcXML_Split/lib/marc4j-2.6.0.jar:marcXML_Split/lib/guava-15.0.jar:marcXML_Split/bin split $*
20
Note: See TracBrowser for help on using the repository browser.