view move-if-change @ 95118:d426dda989b7

* xdisp.c (select_frame_for_redisplay): Adjust for last change to indirect_variable. * eval.c (lisp_indirect_variable): New fun. (Fuser_variable_p): Use it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 20 May 2008 00:13:37 +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