view move-if-change @ 842:dc12269565c9

[xemacs-hg @ 2002-05-14 18:14:27 by ben] fix crash -- tab at buffer beg font-lock.c: Don't use off the beginning position to initiate syntax cache.
author ben
date Tue, 14 May 2002 18:14:30 +0000
parents 376386a54a3c
children
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