1 |
dpavlin |
1.1 |
#!/bin/sh |
2 |
|
|
|
3 |
|
|
md5=/local/isis_data.md5 |
4 |
|
|
dir='/var/autofs/misc/isis_data/??/LIBRI/LIBRI.MST' |
5 |
|
|
|
6 |
dpavlin |
1.4 |
opt=-q |
7 |
|
|
|
8 |
dpavlin |
1.1 |
umask 002 |
9 |
|
|
|
10 |
dpavlin |
1.4 |
cat /local/search/databases.cf | grep database-name | grep -v "^#" | cut -d: -f2 | cut -d= -f1 | xargs -i /local/isis2stream.pl $opt -d {} |
11 |
dpavlin |
1.1 |
|
12 |
dpavlin |
1.4 |
/local/isis2stream.pl $opt -d sf -m blanka,dubravka,miroslav |
13 |
dpavlin |
1.2 |
|
14 |
dpavlin |
1.1 |
exit 0; |
15 |
|
|
|
16 |
|
|
##--- this doesn't work if you change database.cf!! |
17 |
|
|
|
18 |
|
|
if [ -e "$md5" ] ; then |
19 |
|
|
|
20 |
|
|
md5sum -c $md5 2>&1 | cut -d/ -f6 | xargs -i /local/isis2stream.pl -d {} |
21 |
|
|
md5sum $dir > $md5 |
22 |
|
|
|
23 |
|
|
else |
24 |
|
|
|
25 |
|
|
( cat /local/search/databases.cf | grep database-name | grep -v "^#" | cut -d: -f2 | cut -d= -f1 | xargs -i /local/isis2stream.pl -d {} ) && md5sum $dir > $md5 |
26 |
|
|
|
27 |
|
|
fi |