view move-if-change @ 689:6a0eecc6df0e

[xemacs-hg @ 2001-12-06 09:35:50 by michaels] 2001-12-05 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> * packages.el (packages-compute-package-locations): Add user-specific site-packages and infodock-packages hierarchies for symmetry. * find-paths.el (paths-emacs-root-p): Use version-specific name for root testing.
author michaels
date Thu, 06 Dec 2001 09:35:50 +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