OSDN Git Service

2012-10-02 Christophe Lyon <christophe.lyon@linaro.org>
authorclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2012 07:41:28 +0000 (07:41 +0000)
committerclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Oct 2012 07:41:28 +0000 (07:41 +0000)
       * check_GNU_style.sh: Remove temporay file upon exit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191954 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/check_GNU_style.sh

index 9e619d0..6e4cab4 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-02   Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * check_GNU_style.sh: Remove temporay file upon exit.
+
 2012-09-26  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux,
index 8fb579f..b7f1c9d 100755 (executable)
@@ -37,6 +37,10 @@ test $# -eq 0 && usage
 
 tmp=check_GNU_style.tmp
 
+# Remove $tmp on exit and various signals.
+trap "rm -f $tmp" 0
+trap "rm -f $tmp ; exit 1" 1 2 3 5 9 13 15
+
 # Grep
 g (){
     msg="$1"