view move-if-change @ 67865:f94acc1b8bc2

(describe-text-sexp): Use square brackets for button [Show] to distinguish it from the property value `show'. (describe-property-list): Use `insert-text-button' with `help-face' type instead of putting face in quotes, because button is not created automatically for a list of faces. (describe-text-properties-1): Put button-type value in quotes to distinguish from plain text "button". (describe-char): Display code point values in hex. Don't use `symbol-name' for `current-input-method' because it is a string. Use `insert-text-button' with `help-face' type instead of putting hardcoded face in quotes, because button is not created automatically.
author Juri Linkov <juri@jurta.org>
date Wed, 28 Dec 2005 01:55: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