view move-if-change @ 2614:29555dfb1592

[xemacs-hg @ 2005-02-24 23:02:32 by adrian] xemacs-21.5-clean: Add tests\automated\region-tests.el to test region-active-p fix -------------------- ChangeLog entries follow: -------------------- tests/ChangeLog addition: 2005-02-25 Adrian Aichner <adrian@xemacs.org> * automated/region-tests.el: Test regions and zmacs-regions.
author adrian
date Thu, 24 Feb 2005 23:02:37 +0000
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