aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1993-08-02 18:52:12 +0000
committerDavid D. Zuhn <zoo@cygnus>1993-08-02 18:52:12 +0000
commit357561a615511276124a209b461a35699a7c5c59 (patch)
tree1cedacffd3ae35e9458799fb95ad46fa13a72fb9
parent78e551e560c963ba2cdfaff32c0803bd45f9300d (diff)
downloadgdb-357561a615511276124a209b461a35699a7c5c59.zip
gdb-357561a615511276124a209b461a35699a7c5c59.tar.gz
gdb-357561a615511276124a209b461a35699a7c5c59.tar.bz2
add a trap to ensure tmp files are removed
-rw-r--r--ChangeLog5
-rwxr-xr-xinstall.sh1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a59563f..db43a63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@ Sun Aug 1 11:36:27 1993 Fred Fish (fnf@deneb.cygnus.com)
* Makefile.in (make-gdb.tar.gz): Minor changes to move closer
to convergence with 'taz' target in Makefile.in.
+Fri Jul 30 12:34:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
+
+ * install.sh (dsttmp): use trap to ensure that tmp files go
+ away on error conditions
+
Wed Jul 28 11:57:36 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
* Makefile.in (BASE_FLAGS_TO_PASS): remove LOADLIBES
diff --git a/install.sh b/install.sh
index 6c51cad..6e92d0b 100755
--- a/install.sh
+++ b/install.sh
@@ -119,6 +119,7 @@ fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
dsttmp=$dstdir/#inst.$$#
+trap "rm -f ${dsttmp}" 0
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script