view move-if-change @ 5197:ce8ffb95bbe3

finish up CHANGES-beta -- all changes thru Apr 9, 2010 -------------------- ChangeLog entries follow: -------------------- ChangeLog addition: 2010-04-09 Ben Wing <ben@xemacs.org> * CHANGES-beta: Update with my changes to the trunk since the release of 21.5.29 in 2009 up through April 9, 2010.
author Ben Wing <ben@xemacs.org>
date Fri, 09 Apr 2010 02:33:11 -0500
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