#!/bin/sh
# SPDX-License-Identifier: GPL-2.0+

if test -r "$2" && cmp -s "$1" "$2"; then
  rm -f "$1"
else
  mv -f "$1" "$2"
fi
