view move-if-change @ 109665:4dbec9b5cd87

emacs.c cleanups. * src/emacs.c (emacs_copyright, emacs_version): Make static. (Vinitial_window_system, Vauto_save_list_file_name) (Vinhibit_redisplay): Remove declarations. (main): Remove HAVE_SHM code, unused. Remove _I386 conditional for AIX.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 06 Aug 2010 11:48:24 -0700
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