[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to gnats/gnats/edit-pr.sh
From: |
Milan Zamazal |
Subject: |
Changes to gnats/gnats/edit-pr.sh |
Date: |
Sun, 26 May 2002 11:32:02 -0400 |
Index: gnats/gnats/edit-pr.sh
diff -c gnats/gnats/edit-pr.sh:1.15 gnats/gnats/edit-pr.sh:1.16
*** gnats/gnats/edit-pr.sh:1.15 Mon May 20 08:24:33 2002
--- gnats/gnats/edit-pr.sh Sun May 26 11:32:02 2002
***************
*** 1,6 ****
#!/bin/sh
# Program to edit problem reports for GNATS.
! # Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software
# Foundation, Inc.
# Contributed by Jeffrey Osier (address@hidden).
# Majorly revised by Bob Manson (address@hidden).
--- 1,6 ----
#!/bin/sh
# Program to edit problem reports for GNATS.
! # Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 Free
Software
# Foundation, Inc.
# Contributed by Jeffrey Osier (address@hidden).
# Majorly revised by Bob Manson (address@hidden).
***************
*** 114,126 ****
PR_EDIT="$LIBEXECDIR/gnats/pr-edit $GNATS_HOST $GNATS_PORT $EDIT_USER
$EDIT_PASSWD $GNATS_DB"
# These traps take care of deleting all the /tmp files
! trap 'rm -f $new $new.old $change_msg $fixfil ; exit 0' 0
# Don't delete $new on error signals
trap 'if [ "$locked" != "" ]; then \
$PR_EDIT --unlock $pr_id ; \
locked= ; \
! fi ; \
! rm -f $new.old $change_msg $fixfil ; exit 1' 1 2 3 13 15
# find a user name
if [ "$USER" != "" ]; then
--- 114,125 ----
PR_EDIT="$LIBEXECDIR/gnats/pr-edit $GNATS_HOST $GNATS_PORT $EDIT_USER
$EDIT_PASSWD $GNATS_DB"
# These traps take care of deleting all the /tmp files
! trap 'rm -f $new.old $change_msg $fixfil' 0
# Don't delete $new on error signals
trap 'if [ "$locked" != "" ]; then \
$PR_EDIT --unlock $pr_id ; \
locked= ; \
! fi' 1 2 3 13 15
# find a user name
if [ "$USER" != "" ]; then
***************
*** 296,300 ****
--- 295,301 ----
esac
done
done
+
+ rm -f $new
exit 0