1
0
Fork 0
inkscape/testfiles/cli_tests/compare.sh
Daniel Baumann 02d935e272
Adding upstream version 1.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 23:40:13 +02:00

15 lines
440 B
Bash

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
file1=$1
file2=$2
test -f "${file1}" || { echo "compare.sh: First file '${file1}' not found."; exit 1; }
test -f "${file2}" || { echo "compare.sh: Second file '${file2}' not found."; exit 1; }
sed -i='' "s/LMSans..-......./'Latin Modern Sans'/" ${file1}
if ! cmp "${file1}" "${file2}"; then
echo "compare.sh: Files '${file1}' and '${file2}' are not identical'."
exit 1
fi