view move-if-change @ 59484:c6ded43591fd

* facemenu.el (list-colors-print): New function created from code in list-colors-display. Print #RRGGBB at the window right edge. (list-colors-display): When temp-buffer-show-function is not defined, call list-colors-print from temp-buffer-show-hook to get the right value of window-width in list-colors-print after the buffer is displayed.
author Juri Linkov <juri@jurta.org>
date Wed, 12 Jan 2005 00:31:50 +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