view move-if-change @ 4152:80b3f12490a3

[xemacs-hg @ 2007-08-29 06:19:44 by michaels] 2007-08-27 Mike Sperber <mike@xemacs.org> * configure.ac: Try to use pkg-config for finding Xft includes and libraries. If that fails, search also in /usr/local.
author michaels
date Wed, 29 Aug 2007 06:19:54 +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