view move-if-change @ 5497:70af4098e14f

Merge by hand with the changeset that backed out e82f5b7010fe. man/ChangeLog addition: 2011-05-02 Aidan Kehoe <kehoea@parhasard.net> * Makefile: * texinfo.tex: Merge by hand with the changeset that backed out e82f5b7010fe (e82f5b7010fe is incompatible with deployed versions of makeinfo as of today).
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 02 May 2011 10:51:26 +0100
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