view move-if-change @ 3320:a921f5f2aa11

[xemacs-hg @ 2006-03-31 08:39:09 by crestani] * diagnose.el (show-mc-alloc-memory-usage): Rename buffer to "mc-alloc memory usage" to avoid name clash with show-memory-usage.
author crestani
date Fri, 31 Mar 2006 08:39:10 +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