view move-if-change @ 792:4e83fdb13eb9

[xemacs-hg @ 2002-03-23 05:08:47 by youngs] 2002-03-20 John Paul Wallington <jpw@shootybangbang.com> * menubar-items.el (list-all-buffers): New function. (list-all-buffers-function): New customizable variable. (default-menubar): Replace list-buffers with list-all-buffers. 2002-03-04 Simon Josefsson <jas@extundo.com> * files.el (auto-mode-alist): Move Sieve to a place where the comment is more appropriate for it.
author youngs
date Sat, 23 Mar 2002 05:08: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