view move-if-change @ 4118:9aa33376bb5e

[xemacs-hg @ 2007-08-15 12:28:06 by michaels] 2007-08-12 Mike Sperber <mike@xemacs.org> * Makefile.in.in (datarootdir): Add. * configure.ac (infodir): Now in terms of $(datarootdir). (mandir): Ditto, making it usually point to $(prefix)/share/man, conformant with the GNU Coding Standards. lib-src: 2007-08-12 Mike Sperber <mike@xemacs.org> * Makefile.in.in (datarootdir): Add. netinstall: 2007-08-12 Mike Sperber <mike@xemacs.org> * Makefile.in.in (datarootdir): Add.
author michaels
date Wed, 15 Aug 2007 12:28:45 +0000
parents 376386a54a3c
children
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