view move-if-change @ 68822:7010bb070445
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-75
Creator: Michael Olson <mwolson@gnu.org>
Make ERC comply with the new copyright year guidelines.
author |
Miles Bader <miles@gnu.org> |
date |
Sun, 12 Feb 2006 20:25:00 +0000 (2006-02-12) |
parents |
354e0c45cedf |
children |
14a97ab281d5 |
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