X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=contrib%2Fcheck_GNU_style.sh;h=ef8fdda6ddd023397ff220772e61d55b07791cb8;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=8fb579fd1609b9ab5d21a075102458851dc107fa;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh index 8fb579f..ef8fdda 100755 --- a/contrib/check_GNU_style.sh +++ b/contrib/check_GNU_style.sh @@ -1,7 +1,7 @@ #!/bin/sh # Checks some of the GNU style formatting rules in a set of patches. -# Copyright (C) 2010 Free Software Foundation, Inc. +# Copyright (C) 2010, 2012 Free Software Foundation, Inc. # Contributed by Sebastian Pop # This program is free software; you can redistribute it and/or modify @@ -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"