view move-if-change @ 92119:e9d9e79ad882

(MOUSE_SUPPORT): Remove duplicate tooltip.elc. (MSDOS_SUPPORT, VMS_SUPPORT): Remove. (OTHER_PLATFORM_SUPPORT): Replace above. Add X specific files too. (lisp2): Add new languages. ($(DOC)): Use OTHER_PLATFORM_SUPPORT.
author Jason Rumney <jasonr@gnu.org>
date Sat, 23 Feb 2008 00:30:27 +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