From 07abc00a2998f607f128ade6b2d80f590d617b6e Mon Sep 17 00:00:00 2001 From: wl Date: Thu, 25 Feb 2010 20:17:11 +0000 Subject: Use named signals for `trap' in shell scripts. * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2/graph.sh, contrib/pic2graph/pic2graph.sh: Do it. --- contrib/eqn2graph/eqn2graph.sh | 4 ++-- contrib/grap2graph/grap2graph.sh | 4 ++-- contrib/pic2graph/pic2graph.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'contrib') diff --git a/contrib/eqn2graph/eqn2graph.sh b/contrib/eqn2graph/eqn2graph.sh index 69196831..2f1fa566 100644 --- a/contrib/eqn2graph/eqn2graph.sh +++ b/contrib/eqn2graph/eqn2graph.sh @@ -32,7 +32,7 @@ # # Thus, we pass -U to groff(1), and everything else to convert(1). # -# $Id: eqn2graph.sh,v 1.6 2008/09/29 00:53:29 esr Exp $ +# $Id: eqn2graph.sh,v 1.7 2010/02/25 20:17:13 wl Exp $ # groff_opts="" convert_opts="" @@ -75,7 +75,7 @@ if test -z "$tmp"; then { (exit 1); exit 1; } fi -trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2 15 +trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' EXIT INT TERM # Here goes: # 1. Add .EQ/.EN. diff --git a/contrib/grap2graph/grap2graph.sh b/contrib/grap2graph/grap2graph.sh index 7c830c1a..580e340b 100644 --- a/contrib/grap2graph/grap2graph.sh +++ b/contrib/grap2graph/grap2graph.sh @@ -28,7 +28,7 @@ # # Thus, we pass -U to groff(1), and everything else to convert(1). # -# $Id: grap2graph.sh,v 1.4 2005/05/18 07:03:06 wl Exp $ +# $Id: grap2graph.sh,v 1.5 2010/02/25 20:17:13 wl Exp $ # groff_opts="" convert_opts="" @@ -71,7 +71,7 @@ if test -z "$tmp"; then { (exit 1); exit 1; } fi -trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2 15 +trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' EXIT INT TERM # Here goes: # 1. Add .G1/.G2. diff --git a/contrib/pic2graph/pic2graph.sh b/contrib/pic2graph/pic2graph.sh index 9d4854ff..0c456103 100644 --- a/contrib/pic2graph/pic2graph.sh +++ b/contrib/pic2graph/pic2graph.sh @@ -32,7 +32,7 @@ # We don't have complete option coverage on eqn because this is primarily # intended as a pic translator; we can live with eqn defaults. # -# $Id: pic2graph.sh,v 1.8 2008/09/29 00:53:29 esr Exp $ +# $Id: pic2graph.sh,v 1.9 2010/02/25 20:17:13 wl Exp $ # groffpic_opts="" gs_opts="" @@ -86,7 +86,7 @@ if test -z "$tmp"; then { (exit 1); exit 1; } fi -trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2 15 +trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' EXIT INT TERM # Here goes: # 1. Wrap the input in dummy .PS/PE macros (and add possibly null .EQ/.EN) -- cgit v1.2.1