Skip to content

Commit

Permalink
Update sed command to work on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 15, 2024
1 parent 694f49a commit 315e2b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ pam-sys: $(PAM_SRC_DIR)/sys.rs
$(PAM_SRC_DIR)/sys.rs: $(PAM_SRC_DIR)/wrapper.h
$(BINDGEN_CMD) $< --output $@
cargo minify --apply --allow-dirty
sed -i 's/rust-bindgen \w*\.\w*\.\w*/\0, minified by cargo-minify/' $@
sed -i.bak 's/rust-bindgen \w*\.\w*\.\w*/\0, minified by cargo-minify/' $@
rm $@.bak

clean:
rm $(PAM_SRC_DIR)/sys.rs

0 comments on commit 315e2b7

Please sign in to comment.