diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2007-11-26 06:40:31 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2007-11-26 06:40:31 +0000 |
commit | 3a3b6beb8e40d5f74f40c89e77f603508dcea7ed (patch) | |
tree | 80e060f044a146e5f5285e7c8746c978a9f3307f /contrib/compare-debug | |
parent | dc1327cda3ef343633313e19982dd5634dbc5028 (diff) | |
download | gcc-3a3b6beb8e40d5f74f40c89e77f603508dcea7ed.zip gcc-3a3b6beb8e40d5f74f40c89e77f603508dcea7ed.tar.gz gcc-3a3b6beb8e40d5f74f40c89e77f603508dcea7ed.tar.bz2 |
* compare-debug: Introduce -p flag to preserve .stripped files.
From-SVN: r130431
Diffstat (limited to 'contrib/compare-debug')
-rwxr-xr-x | contrib/compare-debug | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/compare-debug b/contrib/compare-debug index f1500b6..6e979e9 100755 --- a/contrib/compare-debug +++ b/contrib/compare-debug @@ -21,6 +21,15 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. +rm='rm -f' + +case $1 in +-p | --preserve) + rm='echo preserving' + shift + ;; +esac + if test $# != 2; then echo 'usage: compare-debug file1.o file2.o' >&2 exit 1 @@ -60,7 +69,7 @@ else status=1 fi -rm -f "$1.$suf1" "$2.$suf2" +$rm "$1.$suf1" "$2.$suf2" trap "exit $status; exit" 0 1 2 15 |