diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-29 20:09:56 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-29 20:09:56 +0000 |
commit | f5680f761ae2fdc12307bacf629141cc76e22063 (patch) | |
tree | 6c73314d3232ca8bfc2c66f105483621df6f848b /configure | |
parent | 39765c25c803c1873ed02bf8e7e5e80377112033 (diff) | |
download | qemu-f5680f761ae2fdc12307bacf629141cc76e22063.tar.gz qemu-f5680f761ae2fdc12307bacf629141cc76e22063.tar.bz2 qemu-f5680f761ae2fdc12307bacf629141cc76e22063.zip |
Use trap shell builtin to remove temporary files
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5816 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,6 +17,8 @@ TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}" TMPS="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.S" TMPI="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.i" +trap "rm -f $TMPC $TMPO $TMPE $TMPS $TMPI; exit" 0 2 3 15 + # default parameters prefix="" interp_prefix="/usr/gnemul/qemu-%M" @@ -1727,5 +1729,3 @@ if test "$source_path_used" = "yes" ; then ln -s $source_path/$f $f done fi - -rm -f $TMPO $TMPC $TMPE $TMPS $TMPI |