-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from oasisprotocol/jberci/devnet-rename
Rename current release to Devnet and prepare for Testnet
- Loading branch information
Showing
7 changed files
with
553 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# Determine the network from the version string; | ||
# if it's unusual (i.e. neither mainnet nor testnet), call the orc tool specially. | ||
|
||
VERSION="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | .[0] | .version')" | ||
PRE="$(echo "$VERSION" | cut -s -d- -f2-)" | ||
|
||
if [ -z "$PRE" ] || (echo "$PRE" | grep -q "testnet"); then | ||
orc "$@" | ||
else | ||
RUNTIMEID="$(grep -A 5 "\\[package.metadata.orc.$PRE\\]" Cargo.toml | grep "runtime-id" | head -n 1 | grep -o '"[0-9a-fA-F]*"' | tr -d '"')" | ||
orc "$@" --runtime-id "$RUNTIMEID" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.