Skip to content

Commit

Permalink
Fixup the depcheck script and filecheck to pass make commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalium committed Nov 11, 2024
1 parent 22b5014 commit 30d7772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ commit :

.PHONY : filecheck
filecheck:
@! git ls-files | grep -v -E '(\.(rs|md|toml|sh|txt|json|lock|mk)|Makefile|LICENSE|rust-toolchain|Dockerfile|OVMF.fd|\.yml|\.gitignore|\.gitkeep)$$' \
@! git ls-files | grep -v -E '(\.(rs|md|toml|sh|txt|json|lock|mk|dot|svg)|Makefile|LICENSE|rust-toolchain|Dockerfile|OVMF.fd|\.yml|\.gitignore|\.gitkeep)$$' \
|| ! echo "!!! Unknown file type is being added! Do you really want to commit the file above? (if so, just modify filecheck recipe)"

.PHONY : spellcheck
Expand Down
3 changes: 2 additions & 1 deletion scripts/depcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use anyhow::Result;
use std::collections::HashSet;
use std::fs::File;
use std::io::Write;
use std::process::Command;
use std::str;
Expand Down Expand Up @@ -93,7 +94,7 @@ fn main() -> Result<()> {

let fset: HashSet<&str> = depset.iter().map(|e| e.0.as_str()).collect();
let vset: HashSet<&str> = depset.iter().map(|e| e.1.as_str()).collect();
let mut f = std::fs::File::create("dep.dot")?;
let mut f = File::create("dep.dot")?;
writeln!(f, "digraph DEP {{")?;
writeln!(f, "layout=dot")?;
writeln!(f, "overlap=false")?;
Expand Down

0 comments on commit 30d7772

Please sign in to comment.