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

Last change on this file since 28795 was 28795, checked in by ak19, 8 years ago

Header to XML explicitly set to UTF-8. Probably not needed anymore, but there you are\!

  • Property svn:executable set to *
File size: 759 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=\"utf-8\"?>" > $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.