view move-if-change @ 26507:aabdfbf65c68

1999-11-19 Francesco Potorti` <F.Potorti@cnuce.cnr.it> * etags.c (_GNU_SOURCE): Define only if undefined. (get_scheme): Declaration deleted. (main): error was called with an integer as second arg, instead of a char pointer. (canonicalize_filename): Bug removed. 1999-11-18 Dave Love <d.love@dl.ac.uk> * etags.c (C_entries): Rename label `intoken', avoiding K&R lossage from name clash with macro.
author Francesco Potortì <pot@gnu.org>
date Fri, 19 Nov 1999 12:46:32 +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