view move-if-change @ 61725:f0d1759ab128

(store_mode_line_string, produce_stretch_glyph) (note_mode_line_or_margin_highlight, note_mouse_highlight): Use Fplist_get instead of Fsafe_plist_get.
author Kim F. Storm <storm@cua.dk>
date Thu, 21 Apr 2005 23:45:28 +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