Fix unreadable BACKLOG and ChangeLog files

epel9
Benjamin A. Beasley 3 years ago
parent 50a6635853
commit aa6e6ab867

@ -46,14 +46,13 @@ produce a nicer display of word differences between the original files.
%setup -q %setup -q
# Fix ISO-8859-1-encoded files # Fix ISO-8859-1-encoded files
tmp="$(mktemp)"
for fn in BACKLOG ChangeLog for fn in BACKLOG ChangeLog
do do
iconv --from=ISO-8859-1 --to=UTF-8 "${fn}" > "${tmp}" iconv --from=ISO-8859-1 --to=UTF-8 "${fn}" > "${fn}.iconv"
touch -r "${fn}" "${tmp}" touch -r "${fn}" "${fn}.iconv"
cp -p "${tmp}" "${fn}" chmod -v --reference="${fn}" "${fn}.iconv"
mv -f "${fn}.iconv" "${fn}"
done done
rm "${tmp}"
%build %build

Loading…
Cancel
Save