view move-if-change @ 59212:d928e34db52a

(Line Height): Total line-height is now specified in line-height property of form (HEIGHT TOTAL). Swap (FACE . RATIO) in cons cells. (nil . RATIO) is relative to actual line height. Use line-height `t' instead of `0' to get minimum height.
author Kim F. Storm <storm@cua.dk>
date Thu, 30 Dec 2004 18:01:16 +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