view move-if-change @ 35032:d8d44de5a247

Doc fixes. Maintainer change. (dired-guess-shell-gnutar, dired-guess-shell-znew-switches): Fix :type. (dired-guess-shell-alist-default): Don't use xloadimage for PNG. (dired-guess-shell-alist-user): Customize. (dired-x-help-address): Set to bug-gnu-emacs. (dired-x-maintainer, dired-x-file, dired-x-version): Deleted. (dired-default-directory): Renamed from default-directory.
author Dave Love <fx@gnu.org>
date Wed, 03 Jan 2001 21:21:08 +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