Commit 3a3b6beb by Alexandre Oliva Committed by Alexandre Oliva

* compare-debug: Introduce -p flag to preserve .stripped files.

From-SVN: r130431
parent dc1327cd
2007-11-26 Alexandre Oliva <aoliva@redhat.com>
* compare-debug: Introduce -p flag to preserve .stripped files.
2007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* texi2pod.pl: Handle @asis. * texi2pod.pl: Handle @asis.
......
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
# along with GCC; see the file COPYING3. If not see # along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.
rm='rm -f'
case $1 in
-p | --preserve)
rm='echo preserving'
shift
;;
esac
if test $# != 2; then if test $# != 2; then
echo 'usage: compare-debug file1.o file2.o' >&2 echo 'usage: compare-debug file1.o file2.o' >&2
exit 1 exit 1
...@@ -60,7 +69,7 @@ else ...@@ -60,7 +69,7 @@ else
status=1 status=1
fi fi
rm -f "$1.$suf1" "$2.$suf2" $rm "$1.$suf1" "$2.$suf2"
trap "exit $status; exit" 0 1 2 15 trap "exit $status; exit" 0 1 2 15
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment