7 lines
443 B
Bash
Executable File
7 lines
443 B
Bash
Executable File
#use the solc compiler https://docs.soliditylang.org/en/v0.8.17/installing-solidity.html
|
|
# to compile all of the .sol files to their corresponding evm binary files stored as .hex
|
|
# solc outputs to stdout a format that we just want to grab the last line of and then remove the trailing newline on that line
|
|
|
|
find -type f -name \*.sol -print0 |
|
|
xargs -0 -I{} bash -c 'solc --bin {} |tail -n1 | tr -d "\n" > $(echo {} | sed -e s/.sol$/.hex/)'
|