view move-if-change @ 28312:034f252dd69b

(do_symval_forwarding, store_symval_forwarding) (find_symbol_value, set_internal, default_value, Fset_default) (Fkill_local_variable, Flocal_variable_p): Use new macros for per-buffer variables.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 26 Mar 2000 14:05:44 +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