view move-if-change @ 91795:bfe257ff864c

2008-02-11 Drew Adams <drew.adams@oracle.com> * help.el (describe-key): Joined some split lines to facilitate filling. * help-fns.el (describe-function-1): Fill text of overlong lines.
author Bastien Guerry <bzg@altern.org>
date Tue, 12 Feb 2008 07:10:49 +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