mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
10 lines
276 B
Plaintext
10 lines
276 B
Plaintext
# shellcheck shell=bash
|
|
set -euo pipefail
|
|
testcaseBasename=$1
|
|
|
|
# Line numbers change when derivation.nix docs are updated.
|
|
sed -i "$testcaseBasename.err" \
|
|
-e 's/[0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9]\([^0-9]\)/<number>\1/g' \
|
|
-e 's/[0-9][0-9]*/<number>/g' \
|
|
;
|