safer MR mapping
[Evergreen.git] / Open-ILS / src / extras / import / build-oils-db.sh
1 #!/bin/bash
2 if [ "_$4" == "_" ]; then
3         echo "Usage:"
4         echo "  $0 {Open-ILS-driver} {db-host} {db-port} {db-name} {db-user} {db-password}"
5         exit 1;
6 fi
7
8 PWD=`pwd`
9 WD=`dirname $0`
10
11 (
12         echo "cd $WD/../../sql/$1/;"
13         cd $WD/../../sql/$1/;
14         pwd
15         ./build-db.sh $2 $3 $4 $5 $6
16 )