/[webpac]/trunk2/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

Diff of /trunk2/run.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/run.sh revision 68 by dpavlin, Fri Jul 4 23:30:47 2003 UTC trunk2/run.sh revision 337 by dpavlin, Thu Jun 10 19:22:40 2004 UTC
# Line 1  Line 1 
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  ./isis2xml.pl | swish-e -S prog -c swish_isis.conf  # 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
23    

Legend:
Removed from v.68  
changed lines
  Added in v.337

  ViewVC Help
Powered by ViewVC 1.1.26