view move-if-change @ 857:b5278486690c

[xemacs-hg @ 2002-05-31 07:14:51 by michaels] 2002-05-30 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> * code-process.el (call-process): Ensure that the argument to `symbol-value-in-buffer' is a buffer even if `buffer' is a string.
author michaels
date Fri, 31 May 2002 07:14:52 +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