view move-if-change @ 94059:c249cf124bd6

(vc-status-update): Revert an incorrect rewrite. Add some comments. (vc-status-refresh-files): New function. (vc-status-refresh): Use `vc-status-refresh-files' to refresh the state of up-to-date files. (vc-default-dir-status-files): New function.
author Alexandre Julliard <julliard@winehq.org>
date Sun, 13 Apr 2008 18:06:35 +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