view move-if-change @ 103534:a48942c14848

* tramp.texi (History): Add GVFS support. (External methods): Precise `rsync' description. Add `dav', `davs' and `obex' methods. Add 'tramp-gvfs-methods' option. (Multi-hops): Cells of `tramp-default-proxies-alist' can also be Lisp forms. (Remote Programs): Introduce `tramp-own-remote-path'. (Remote processes): New subsection "Running remote programs that create local X11 windows". (Frequently Asked Questions): Improve code for disabling vc.
author Michael Albinus <michael.albinus@gmx.de>
date Mon, 22 Jun 2009 21:39:28 +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