view move-if-change @ 95575:d34a432d5863

* keymap.c (Vminibuffer_local_filename_must_match_map): Rename from Vminibuffer_local_must_match_filename_map. (syms_of_keymap): * minibuf.c (Fcompleting_read): Adjust accordingly. * commands.h: Rename declaration as well. * minibuffer.el (minibuffer-local-must-match-filename-map): Declare obsolete alias for the old name.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 05 Jun 2008 05:44:12 +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