gnats-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to gnats/gnats/at-pr.sh


From: Yngve Svendsen
Subject: Changes to gnats/gnats/at-pr.sh
Date: Thu, 31 Oct 2002 18:58:45 -0500

Index: gnats/gnats/at-pr.sh
diff -c gnats/gnats/at-pr.sh:1.7 gnats/gnats/at-pr.sh:1.8
*** gnats/gnats/at-pr.sh:1.7    Sun Aug  4 06:57:33 2002
--- gnats/gnats/at-pr.sh        Thu Oct 31 18:58:44 2002
***************
*** 26,36 ****
  
   1 - response time
   2 - PR number
!  3 - path to the PR file (unused)
!  4 - submitter-id
!  5 - full name of the submitter
!  6 - contact for the submitter
!  7 - address for GNATS_ADMIN
  "
  
  PATH=/bin:/usr/bin; export PATH
--- 26,35 ----
  
   1 - response time
   2 - PR number
!  3 - submitter-id
!  4 - full name of the submitter
!  5 - contact for the submitter
!  6 - address for GNATS_ADMIN
  "
  
  PATH=/bin:/usr/bin; export PATH
***************
*** 48,57 ****
  fi
  
  # process command line options
! while [ $# -gt 7 ]; do
    case "$1" in
      -d | --database)
!       if [ $# -eq 8 ]
        then 
          echo "ERROR: value required for $1 option" >&2
          echo "$USAGE" >&2
--- 47,56 ----
  fi
  
  # process command line options
! while [ $# -gt 6 ]; do
    case "$1" in
      -d | --database)
!       if [ $# -eq 7 ]
        then 
          echo "ERROR: value required for $1 option" >&2
          echo "$USAGE" >&2
***************
*** 79,85 ****
      exit 1
  fi
  
! if [ $# != 7 ]; then
    echo "ERROR: $prog called with the incorrect number of arguments" >&2
    echo "$USAGE" >&2
    exit 1
--- 78,84 ----
      exit 1
  fi
  
! if [ $# != 6 ]; then
    echo "ERROR: $prog called with the incorrect number of arguments" >&2
    echo "$USAGE" >&2
    exit 1
***************
*** 107,114 ****
  
  # $DEBUG_MODE is set to 0 when debug is off in the config file
  if [ "x$DEBUG_MODE" = "x1" ]; then
!   STEALTH_HEADER="From: $7 (GNATS Management)
! To: $7
  Subject: mail output from at-pr
  
  
--- 106,113 ----
  
  # $DEBUG_MODE is set to 0 when debug is off in the config file
  if [ "x$DEBUG_MODE" = "x1" ]; then
!   STEALTH_HEADER="From: $6 (GNATS Management)
! To: $6
  Subject: mail output from at-pr
  
  
***************
*** 117,132 ****
  
  if [ "$STATE" = "${DEFAULTSTATE}" ]; then
    $LIBEXECDIR/mail-agent << __EOF__
! ${STEALTH_HEADER}From: $7 (GNATS Management)
! To: $6, $RESP_ADDR, $7
  Subject: PR $2 not analyzed in $1 hours
  
  
  PR $2 was not analyzed within the acknowledgment period
  of $1 business hours.  The pertinent information is:
  
!  Submitter-Id: $4
!  Originator: $5
   Synopsis: $SYNOPSIS
   Person responsible for the PR: $RESPONSIBLE
  
--- 116,131 ----
  
  if [ "$STATE" = "${DEFAULTSTATE}" ]; then
    $LIBEXECDIR/mail-agent << __EOF__
! ${STEALTH_HEADER}From: $6 (GNATS Management)
! To: $5, $RESP_ADDR, $6
  Subject: PR $2 not analyzed in $1 hours
  
  
  PR $2 was not analyzed within the acknowledgment period
  of $1 business hours.  The pertinent information is:
  
!  Submitter-Id: $3
!  Originator: $4
   Synopsis: $SYNOPSIS
   Person responsible for the PR: $RESPONSIBLE
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]