Once temporary version files are done, replace the original with the
temp file instead of copying over it. We don't need the temporary copy
any more so we can move it over the target file.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
if [ -f $VERSION_TARGET ] ; then
cmp -s $VERSION_TMP $VERSION_TARGET || cp $VERSION_TMP $VERSION_TARGET
else
- cp $VERSION_TMP $VERSION_TARGET
+ mv $VERSION_TMP $VERSION_TARGET
fi
echo $COMPILER_STR > $COMPILER_STR_TMP
if [ -f $COMPILER_STR_TARGET ] ; then
cmp -s $COMPILER_STR_TMP $COMPILER_STR_TARGET || \
- cp $COMPILER_STR_TMP $COMPILER_STR_TARGET
+ mv $COMPILER_STR_TMP $COMPILER_STR_TARGET
else
- cp $COMPILER_STR_TMP $COMPILER_STR_TARGET
+ mv $COMPILER_STR_TMP $COMPILER_STR_TARGET
fi