Skip to content

Commit

Permalink
Osx makefile support (#1149)
Browse files Browse the repository at this point in the history

* support osx shasum cli tool
  • Loading branch information
Leibniz137 authored Aug 8, 2022
1 parent 4161831 commit 4aef437
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ bins: stdlib
stdlib:
# cargo run ${CARGO_ARGS} -p diem-framework
cargo run ${CARGO_ARGS} -p diem-framework -- --create-upgrade-payload
sha256sum language/diem-framework/staged/stdlib.mv
# linux uses sha265sum, but not available by default on OS X
bash -c "sha256sum language/diem-framework/staged/stdlib.mv || shasum -a 256 language/diem-framework/staged/stdlib.mv"


install: mv-bin bin-path
Expand Down Expand Up @@ -301,8 +302,8 @@ genesis: stdlib
--layout-path ${DATA_PATH}/set_layout.toml \
--val-ip-address ${IP}


sha256sum ${DATA_PATH}/genesis.blob
# linux uses sha265sum, but not available by default on OS X
bash -c "sha256sum ${DATA_PATH}/genesis.blob || shasum -a 256 ${DATA_PATH}/genesis.blob"

#### NODE MANAGEMENT ####
start:
Expand Down

0 comments on commit 4aef437

Please sign in to comment.