view move-if-change @ 51815:81538ceba107

2003-07-08 Kim F. Storm <storm@cua.dk> * international/mule-cmds.el (set-display-table-and-terminal-coding-system): Don't break bootstrap if standard-display-table isn't setup yet.
author John Paul Wallington <jpw@pobox.com>
date Tue, 08 Jul 2003 09:22:52 +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