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 |
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 |
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 |
|
|
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 |