1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
#cd /data/isis_data/ebsco-marc |
dir=`dirname $0` |
4 |
#wget -m -nH -i in |
if [ "$dir" == "." ] ; then |
5 |
|
dir=`pwd` |
6 |
|
fi |
7 |
|
|
8 |
cd /data/webpac |
#week=`date +%Y%w` |
9 |
|
#last_week=`cat $dir/.week 2>/dev/null || echo 'none'` |
10 |
|
|
11 |
|
# do EBSCO update once a week |
12 |
|
#if [ "$week" != "$last_week" ] ; then |
13 |
|
# cd /data/isis_data/ebsco-marc |
14 |
|
# wget -m -nH -i in |
15 |
|
# echo "$week" > $dir/.week |
16 |
|
#else |
17 |
|
# echo "EBSCO already updated this week..." |
18 |
|
#fi |
19 |
|
|
20 |
|
cd $dir |
21 |
|
|
22 |
( ./all2xml.pl | swish-e -S prog -c swish_isis.conf ) 2>&1 | tee log |
( ./all2xml.pl | swish-e -S prog -c swish_isis.conf ) 2>&1 | tee log |
23 |
|
|