view move-if-change @ 49521:c259d8177692

2003-01-29 Didier Verna <didier@xemacs.org> * cus-edit.el (custom-save-variables): also save non theme'd ones. * cus-edit.el (custom-save-faces): ditto.
author John Paul Wallington <jpw@pobox.com>
date Wed, 29 Jan 2003 21:44:18 +0000
parents 354e0c45cedf
children 14a97ab281d5
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