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 |
|
---|
3 | full_filename=NZDataFull.xml
|
---|
4 |
|
---|
5 | if [ ! -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 |
|
---|
16 | fi
|
---|
17 |
|
---|
18 | echo "Splitting '$full_filename', this may take some time ..."
|
---|
19 | java -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.