From 3a3b6beb8e40d5f74f40c89e77f603508dcea7ed Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 26 Nov 2007 06:40:31 +0000 Subject: [PATCH] * compare-debug: Introduce -p flag to preserve .stripped files. From-SVN: r130431 --- contrib/ChangeLog | 4 ++++ contrib/compare-debug | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 8df5f828743..e2f4ededaa1 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2007-11-26 Alexandre Oliva + + * compare-debug: Introduce -p flag to preserve .stripped files. + 2007-10-08 Manuel Lopez-Ibanez * texi2pod.pl: Handle @asis. diff --git a/contrib/compare-debug b/contrib/compare-debug index f1500b60788..6e979e9d786 100755 --- a/contrib/compare-debug +++ b/contrib/compare-debug @@ -21,6 +21,15 @@ # along with GCC; see the file COPYING3. If not see # . +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 -- 2.30.2