view move-if-change @ 56850:d38f0e75756e

Various minor changes in addition to: (Indentation Commands): Correct description of `indent-relative'. (Tab Stops): <TAB> is no longer bound to `tab-to-tab-stop' in Text mode. The *Tab Stops* buffer uses Overwrite Mode. (Just Spaces): `untabify' converts sequences of at least two spaces to tabs.
author Luc Teirlinck <teirllm@auburn.edu>
date Mon, 30 Aug 2004 22:02: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