view move-if-change @ 46992:6529728ddf05

Version 2.0.13 released. (tramp-handle-write-region): Don't check to see if remote end is awake after sending data to remote host: we want to send "EOF" not "echo are you awake"... (tramp-maybe-open-connection): Swap args for tramp-time-diff. (tramp-yn-prompt-regexp): New variable. (tramp-action-yn): New function, using it. (tramp-feature-write-region-fix): New internal variable. Not yet used. Should be used in `tramp-handle-write-region'.
author Kai Großjohann <kgrossjo@eu.uu.net>
date Wed, 21 Aug 2002 15:04:29 +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