]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/extras/import/importer.sh
LP1054322 - libparent-perl not needed for Ubuntu Precise
[working/Evergreen.git] / Open-ILS / src / extras / import / importer.sh
1 #!/bin/sh
2
3 CONF=$1
4 FILE=$2
5 OUT=$3
6 KEYS=$4
7
8 if [ "_$OUT" == "_" ]; then
9         echo "Usage: $0 {Config File} {MARC file} {Output File} [{key file}]"
10         exit;
11 fi
12
13 DIR=`dirname $0`
14
15 $DIR/marc2bre.pl \
16                 -k $KEYS \
17                 -c $CONF $FILE 2>/dev/null | \
18         $DIR/direct_ingest.pl \
19                 -c $CONF \
20                 -t 1 2>/dev/null | \
21         $DIR/pg_loader.pl -c $CONF \
22                 -or bre \
23                 -or mrd \
24                 -or mfr \
25                 -or mtfe \
26                 -or mafe \
27                 -or msfe \
28                 -or mkfe \
29                 -or msefe \
30                 -a mrd \
31                 -a mfr \
32                 -a mtfe \
33                 -a mafe \
34                 -a msfe \
35                 -a mkfe \
36                 -a msefe