Score:0

Convert Makefile into Bash script

jo flag

Hello i would like to convert a Makefile into a bash script or ansible-playbook any ideas ?

build/nimbus_validator_client \
        --log-level="$(RUNTIME_LOG_LEVEL)" \
        --log-file=build/data/shared_$(1)_$(NODE_ID)/nbc_vc_$$(date +"%Y%m%d%H%M%S").log \
        --data-dir=build/data/shared_$(1)_$(NODE_ID) \
        --rpc-port=$$(( $(BASE_RPC_PORT) +$(NODE_ID) ))
endef

define MAKE_DEPOSIT_DATA
    build/nimbus_beacon_node deposits createTestnetDeposits \
        --network=$(1) \
        --new-wallet-file=build/data/shared_$(1)_$(NODE_ID)/wallet.json \
        --out-validators-dir=build/data/shared_$(1)_$(NODE_ID)/validators \
        --out-secrets-dir=build/data/shared_$(1)_$(NODE_ID)/secrets \
        --out-deposits-file=$(1)-deposits_data-$$(date +"%Y%m%d%H%M%S").json \
        --count=$(VALIDATORS)
endef

define MAKE_DEPOSIT
    build/nimbus_beacon_node deposits createTestnetDeposits \
        --network=$(1) \
        --out-deposits-file=nbc-$(1)-deposits.json \
        --new-wallet-file=build/data/shared_$(1)_$(NODE_ID)/wallet.json \
        --out-validators-dir=build/data/shared_$(1)_$(NODE_ID)/validators \
        --out-secrets-dir=build/data/shared_$(1)_$(NODE_ID)/secrets \
        --count=$(VALIDATORS)

    build/deposit_contract sendDeposits \
        --web3-url=$(WEB3_URL) \
        --deposit-contract=$$(cat vendor/eth2-network/shared/$(1)/deposit_contract.txt) \
        --deposits-file=nbc-$(1)-deposits.json \
        --min-delay=$(DEPOSITS_DELAY) \
        --ask-for-key
endef
Cram007 avatar
jo flag
Thank you Artur Meinild
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.