From 3cb349ac5fb2ebdc56886e9c96722a1a39ddbc76 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 5 Apr 2024 10:47:18 -0400 Subject: [PATCH] Convert some stray CRNL line endings --- xalan-c.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xalan-c.spec b/xalan-c.spec index 55bbf40..87d7f62 100644 --- a/xalan-c.spec +++ b/xalan-c.spec @@ -28,6 +28,8 @@ BuildRequires: cmake # Either make or ninja is supported. BuildRequires: ninja-build BuildRequires: gcc-c++ + +BuildRequires: dos2unix BuildRequires: hardlink BuildRequires: xerces-c-devel @@ -81,6 +83,12 @@ chmod -v a-x NOTICE # samples are only tested and not installed), and is annoying to exclude. rm -vf samples/configure samples/configure.in +# Convert line endings as needed: +find docs samples src -type f -exec file '{}' '+' | + grep -F 'CRLF' | + awk -F ':' '{ print $1 }' | + xargs dos2unix --keepdate + %build %cmake %{?with_icu:-Dtranscoder=icu} -GNinja