view move-if-change @ 92786:f85ca7d27ab2

(inhibit-startup-screen): Revert incomplete 2008-03-10 merge from emacs--rel--22 that partly reverted 2008-02-28 change that added initial message to *scratch* buffer regardless of the value of `inhibit-startup-screen'. Now keep this change in the trunk, but not in the 22 branch.
author Juri Linkov <juri@jurta.org>
date Wed, 12 Mar 2008 21:54:36 +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