/[gnats]/gnats/gnats/edit-pr.sh
ViewVC logotype

Diff of /gnats/gnats/edit-pr.sh

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

revision 1.15 by pdm, Mon May 20 12:24:33 2002 UTC revision 1.16 by pdm, Sun May 26 15:32:02 2002 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # Program to edit problem reports for GNATS.  # Program to edit problem reports for GNATS.
3  # Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software  # Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 Free Software
4  # Foundation, Inc.  # Foundation, Inc.
5  # Contributed by Jeffrey Osier (jeffrey@cygnus.com).  # Contributed by Jeffrey Osier (jeffrey@cygnus.com).
6  # Majorly revised by Bob Manson (manson@juniper.net).  # Majorly revised by Bob Manson (manson@juniper.net).
# Line 114  PR_ADDR="$QUERY_PR --responsible-address Line 114  PR_ADDR="$QUERY_PR --responsible-address
114  PR_EDIT="$LIBEXECDIR/gnats/pr-edit $GNATS_HOST $GNATS_PORT $EDIT_USER $EDIT_PASSWD $GNATS_DB"  PR_EDIT="$LIBEXECDIR/gnats/pr-edit $GNATS_HOST $GNATS_PORT $EDIT_USER $EDIT_PASSWD $GNATS_DB"
115    
116  # These traps take care of deleting all the /tmp files  # These traps take care of deleting all the /tmp files
117  trap 'rm -f $new $new.old $change_msg $fixfil ; exit 0' 0  trap 'rm -f $new.old $change_msg $fixfil' 0
118  # Don't delete $new on error signals  # Don't delete $new on error signals
119  trap 'if [ "$locked" != "" ]; then \  trap 'if [ "$locked" != "" ]; then \
120          $PR_EDIT --unlock $pr_id ; \          $PR_EDIT --unlock $pr_id ; \
121          locked= ; \          locked= ; \
122        fi ; \        fi' 1 2 3 13 15
       rm -f $new.old $change_msg $fixfil ; exit 1' 1 2 3 13 15  
123    
124  # find a user name  # find a user name
125  if [ "$USER" != "" ]; then  if [ "$USER" != "" ]; then
# Line 297  while true; do Line 296  while true; do
296      done      done
297  done  done
298    
299    rm -f $new
300    
301  exit 0  exit 0

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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