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). |
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 |
296 |
done |
done |
297 |
done |
done |
298 |
|
|
299 |
|
rm -f $new |
300 |
|
|
301 |
exit 0 |
exit 0 |