File: inc-comparetool.sh

package info (click to toggle)
libexif 0.6.25-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,664 kB
  • sloc: ansic: 13,214; cpp: 457; makefile: 395; sh: 206
file content (18 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- sh -*-
#
# cmp(1) creates the same exit code as diff in case of files being
# different or the same, even though the diff(1) output is more
# informative
#
# Copyright (c) 2021 Hans Ulrich Niedermann <gp@n-dimensional.de>
# SPDX-License-Identifier: LGPL-2.0-or-later

if test "x$DIFF_U" != x && test "x$DIFF_U" != xno
then
    comparetool="$DIFF_U"
elif test "x$DIFF" != x && test "x$DIFF" != xno
then
    comparetool="$DIFF"
else
    comparetool=cmp
fi