/[gnats]/gnats/gnats/check-db.sh
ViewVC logotype

Diff of /gnats/gnats/check-db.sh

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

revision 1.8 by pdm, Sat Jul 28 17:52:36 2001 UTC revision 1.9 by andrewg, Sun Apr 27 11:35:43 2003 UTC
# Line 40  Line 40 
40  # After checking the index file for inconsistencies, the script  # After checking the index file for inconsistencies, the script
41  # unlocks the database and exits.  # unlocks the database and exits.
42    
43    BINDIR=xBINDIRx
44  LIBEXECDIR=xLIBEXECDIRx/gnats  LIBEXECDIR=xLIBEXECDIRx/gnats
45    
46  PATH=${LIBEXECDIR}:/usr/local/bin:/bin:/usr/bin; export PATH  PATH=${LIBEXECDIR}:/usr/local/bin:/bin:/usr/bin; export PATH
# Line 84  while [ $# -gt 0 ]; do Line 85  while [ $# -gt 0 ]; do
85    shift    shift
86  done  done
87    
88    QUERY_PR="$BINDIR/query-pr"
89    
90  if [ $CHECKALL = yes ]; then  if [ $CHECKALL = yes ]; then
91    for D in `query-pr --list-databases | sed '1,$s/^\([^:][^:]*\):.*$/\1/'`; do    for D in `$QUERY_PR --list-databases | sed '1,$s/^\([^:][^:]*\):.*$/\1/'`; do
92      $PROGRAM -d "$D" $*      $PROGRAM -d "$D" $*
93    done    done
94    exit    exit
# Line 94  fi Line 97  fi
97  export GNATSDB  export GNATSDB
98    
99  if [ "x$GNATS_ROOT" = "x" ]; then  if [ "x$GNATS_ROOT" = "x" ]; then
100    eval `query-pr --print-sh-vars`    eval `$QUERY_PR --print-sh-vars`
101    GNATS_ROOT=$GNATSDBDIR    GNATS_ROOT=$GNATSDBDIR
102  fi  fi
103    
# Line 126  while [ $i -lt 30 ]; do Line 129  while [ $i -lt 30 ]; do
129    sleep 10    sleep 10
130  done  done
131    
132  GNATS_ADMIN_ADDR=`query-pr --responsible-address gnats-admin`  GNATS_ADMIN_ADDR=`$QUERY_PR --responsible-address gnats-admin`
133  if $NOTLOCKED; then  if $NOTLOCKED; then
134    mail-agent <<EOF    mail-agent <<EOF
135  To: $GNATS_ADMIN_ADDR  To: $GNATS_ADMIN_ADDR

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26