view move-if-change @ 5110:b24cf478a45e

make test backtraces smaller -------------------- ChangeLog entries follow: -------------------- lisp/ChangeLog addition: 2010-03-06 Ben Wing <ben@xemacs.org> * test-harness.el: * test-harness.el (test-harness-backtrace): New. * test-harness.el (test-harness-assertion-failure-do-debug): * test-harness.el (test-harness-unexpected-error-do-debug): Use the print settings from edebug.el to make backtraces not be so huge.
author Ben Wing <ben@xemacs.org>
date Sat, 06 Mar 2010 21:13:19 -0600
parents 376386a54a3c
children
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi