view move-if-change @ 52186:e8156132db3d

(Format of Keymaps): Keymaps contain char tables, not vectors. (Active Keymaps): Add emulation-mode-map-alists. (Functions for Key Lookup): key-binding has new arg no-remap. (Remapping Commands): New node. (Scanning Keymaps): where-is-internal has new arg no-remap. (Tool Bar): Add tool-bar-local-item-from-menu. Clarify when to use tool-bar-add-item-from-menu.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 Aug 2003 17:21:57 +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