Skip to content

Commit 8e6e785

Browse files
committed
contributing: remove BUILDING.md references
There were references to BUILDING.md in files which were ported from mlkem. Change these to point towards the nix setup information in CONTRIBUTING.md. Signed-off-by: Andreas Hatziiliou <andreas.hatziiliou@savoirfairelinux.com>
1 parent 2227d0b commit 8e6e785

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/autogen

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def finalize_format_batch(batch):
110110
if p.returncode != 0:
111111
print(p.stderr)
112112
print(
113-
f"Failed to auto-format autogenerated code (clang-format return code {p.returncode}). Are you running in a nix shell? See BUILDING.md."
113+
f"Failed to auto-format autogenerated code (clang-format return code {p.returncode}). Are you running in a nix shell? See CONTRIBUTING.md."
114114
)
115115
exit(1)
116116

@@ -291,7 +291,7 @@ def format_content(content):
291291
if p.returncode != 0:
292292
print(p.stderr)
293293
print(
294-
f"Failed to auto-format autogenerated code (clang-format return code {p.returncode}). Are you running in a nix shell? See BUILDING.md."
294+
f"Failed to auto-format autogenerated code (clang-format return code {p.returncode}). Are you running in a nix shell? See CONTRIBUTING.md."
295295
)
296296
exit(1)
297297
return p.stdout

scripts/format

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ error()
3030

3131
info "Formatting nix files"
3232
if ! command -v nixpkgs-fmt 2>&1 >/dev/null; then
33-
error "nixpkgs-fmt not found. Are you running in a nix shell? See BUILDING.md."
33+
error "nixpkgs-fmt not found. Are you running in a nix shell? See CONTRIBUTING.md."
3434
exit 1
3535
fi
3636

3737
nixpkgs-fmt "$ROOT"
3838

3939
info "Formatting shell scripts"
4040
if ! command -v shfmt 2>&1 >/dev/null; then
41-
error "shfmt not found. Are you running in a nix shell? See BUILDING.md."
41+
error "shfmt not found. Are you running in a nix shell? See CONTRIBUTING.md."
4242
exit 1
4343
fi
4444
shfmt -s -w -l -i 2 -ci -fn $(shfmt -f $(git grep -l '' :/))
4545

4646
info "Formatting python scripts"
4747
if ! command -v black 2>&1 >/dev/null; then
48-
error "black not found. Are you running in a nix shell? See BUILDING.md."
48+
error "black not found. Are you running in a nix shell? See CONTRIBUTING.md."
4949
exit 1
5050
fi
5151
black --include "(scripts/tests|scripts/simpasm|scripts/cfify|scripts/autogen|scripts/check-namespace|\.py$)" "$ROOT"
5252

5353
info "Formatting c files"
5454
if ! command -v clang-format 2>&1 >/dev/null; then
55-
error "clang-format not found. Are you running in a nix shell? See BUILDING.md."
55+
error "clang-format not found. Are you running in a nix shell? See CONTRIBUTING.md."
5656
exit 1
5757
fi
5858

0 commit comments

Comments
 (0)