view move-if-change @ 5721:cc852bdbdbaa

Remove obsolete legacy code in `file-remote-p'. 2013-02-20 Michael Sperber <mike@xemacs.org> * files.el (file-remote-p): Remove an ancient piece of obsolete legacy code that looks at `efs-ftp-path'.
author Mike Sperber <sperber@deinprogramm.de>
date Wed, 20 Feb 2013 11:15:25 +0100
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