view move-if-change @ 98829:e27ba9bfde7a

(Fwindow_width, Fset_window_start) (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter) (Fdelete_windows_on, Freplace_buffer_in_windows): Make doc-strings follow code and Elisp manual more closely. (Fwindow_dedicated_p): Make window argument optional. (Fset_window_dedicated_p): Rename argument "arg" to "flag". (Fset_window_buffer): Respect any non-nil dedicated value for window. Rename "buffer" argument to "buffer_or_name".
author Martin Rudalics <rudalics@gmx.at>
date Sat, 18 Oct 2008 17:08:31 +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