view move-if-change @ 98750:3d5bcaefd8cf

* find-file.el (ff-get-file): Doc fix. (ff-get-file-name): Use `let', not `let*'. (ff-search-directories): Fix typo in docstring. (ff-pre-find-hook, ff-pre-load-hook, ff-post-load-hook) (ff-not-found-hook, ff-file-created-hook, ff-case-fold-search) (ff-always-in-other-window, ff-ignore-include, ff-always-try-to-create) (ff-quiet-mode, ff-other-file-alist, cc-search-directories) (cc-other-file-alist, modula2-other-file-alist): Remove spurious * in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 15 Oct 2008 15:32:21 +0000
parents 354e0c45cedf
children 14a97ab281d5
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