view move-if-change @ 3019:e4c2385012ba

[xemacs-hg @ 2005-10-24 21:01:02 by malcolmp] configure.ac: Fix broken complex arg support. Prefer Xaw to Motif on linux, Mac and BSD.
author malcolmp
date Mon, 24 Oct 2005 21:01:08 +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