view move-if-change @ 105213:ad2fd09b0d6c

(MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in internal.elc. Add term/pc-win.elc. (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and term/x-win.elc. (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and term/w32-win.elc. (NS_SUPPORT): New. (lisp): Add NS_SUPPORT. (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
author Glenn Morris <rgm@gnu.org>
date Sat, 26 Sep 2009 19:40:55 +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