mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
5f0acbc21f
Updating the expected dignostics for `damlc`'s integration tests can be quite tedious. This PR adds a `sed` script to simplify it a bit. See the included readme for details. CHANGELOG_BEGIN CHANGELOG_END
22 lines
238 B
Sed
22 lines
238 B
Sed
/Range:/ {
|
|
s/^ *Range: */range=/
|
|
s/$/;/
|
|
h
|
|
}
|
|
/Severity:/ {
|
|
s/^ *Severity: *Ds//
|
|
s/Warning/Warn/
|
|
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
|
|
s/^/-- @/
|
|
G
|
|
h
|
|
}
|
|
/Message:/ {
|
|
n
|
|
s/^ *//
|
|
H
|
|
g
|
|
s/\n/ /g
|
|
p
|
|
}
|