move-if-change: cope with concurrent mv of identical file.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 22 Jan 2011 15:44:52 +0000 (16:44 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 28 Jan 2011 20:09:29 +0000 (21:09 +0100)
commit59211b860544f8ec53420147785fa16ed298c681
treec6d7368d95f73c4933ef853dc1309cd1e471ef57
parentd15ae07e45e02d780e6c39e1ed3ced5e188cba5f
move-if-change: cope with concurrent mv of identical file.

* build-aux/move-if-change (CMPPROG): Accept environment
variable as an override for `cmp'.
(usage): Document CMPPROG.
Adjust comparison to drop stdout.  Cope with failure of mv if
the target file exists and is identical to the source, for
parallel builds.
Report from H.J. Lu against binutils in PR binutils/12283.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
build-aux/move-if-change