view move-if-change @ 3309:ad7894a4ab41

[xemacs-hg @ 2006-03-27 21:00:01 by james] Fix ALSA detection by detecting a header file with no dependencies. See xemacs-patches message with ID <m3vetzvc39.fsf@jerrypc.cs.usu.edu>.
author james
date Mon, 27 Mar 2006 21:00:13 +0000 (2006-03-27)
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