1#!/bin/sh 2# cmp(1) creates the same exit code as diff in case of files being 3# different or the same, even though the diff(1) output is more 4# informative 5# 6# Copyright (c) 2021 Hans Ulrich Niedermann <gp@n-dimensional.de> 7# SPDX-License-Identifier: LGPL-2.0-or-later 8 9if test "x$DIFF_U" != x && test "x$DIFF_U" != xno 10then 11 comparetool="$DIFF_U" 12elif test "x$DIFF" != x && test "x$DIFF" != xno 13then 14 comparetool="$DIFF" 15else 16 comparetool=cmp 17fi 18