/[webpac-proto]/run.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /run.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sun Jun 9 20:00:21 2002 UTC (17 years ago) by dpavlin
Branch: MAIN
Branch point for: DbP
File MIME type: application/x-sh
Initial revision

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

  ViewVC Help
Powered by ViewVC 1.1.26