mirror of
https://github.com/libexpat/libexpat.git
synced 2026-01-26 07:37:56 +00:00
fix-xmltest-log.sh: Rewrite in pure sed.
This removes the need for installing dos2unix in development and CI environments.
This commit is contained in:
parent
e0cf7c8544
commit
59295befca
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
@ -61,7 +61,6 @@ jobs:
|
||||
cmake \
|
||||
docbook-xml \
|
||||
docbook2x \
|
||||
dos2unix \
|
||||
gcc-multilib \
|
||||
g++-multilib \
|
||||
lcov \
|
||||
|
||||
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
@ -130,7 +130,6 @@ jobs:
|
||||
sudo apt-get install --yes --no-install-recommends -V \
|
||||
cmake \
|
||||
docbook2x \
|
||||
dos2unix \
|
||||
gcc-multilib \
|
||||
g++-multilib \
|
||||
lcov \
|
||||
|
||||
1
Brewfile
1
Brewfile
@ -2,7 +2,6 @@ brew "autoconf"
|
||||
brew "automake"
|
||||
brew "cmake"
|
||||
brew "docbook2x"
|
||||
brew "dos2unix"
|
||||
brew "gcc"
|
||||
brew "gettext"
|
||||
brew "ghostscript"
|
||||
|
||||
@ -32,10 +32,10 @@ set -e
|
||||
|
||||
filename="${1:-tests/xmltest.log}"
|
||||
|
||||
dos2unix "${filename}"
|
||||
|
||||
tempfile="$(mktemp)"
|
||||
sed \
|
||||
sed -i.bak \
|
||||
-e '# convert DOS line endings to Unix without resorting to dos2unix' \
|
||||
-e $'s/\r//' \
|
||||
\
|
||||
-e 's/^wine: Call .* msvcrt\.dll\._wperror, aborting$/ibm49i02.dtd: No such file or directory/' \
|
||||
\
|
||||
-e '/^wine: /d' \
|
||||
@ -46,5 +46,4 @@ sed \
|
||||
-e '/^wine client error:/d' \
|
||||
-e '/^In ibm\/invalid\/P49\/: Unhandled exception: unimplemented .\+/d' \
|
||||
\
|
||||
"${filename}" > "${tempfile}"
|
||||
mv "${tempfile}" "${filename}"
|
||||
"${filename}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user