view move-if-change @ 100040:60d9e250ee84

(Character Properties): New Section. (Specifying Coding Systems): Document `coding-system-priority-list', `set-coding-system-priority', and `with-coding-priority'. (Lisp and Coding Systems): Document `check-coding-systems-region' and `coding-system-charset-list'. (Coding System Basics): Document `coding-system-aliases'.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 29 Nov 2008 17:03:54 +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