-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7ae6ea
commit 68f53f1
Showing
2 changed files
with
14 additions
and
17 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
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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
.PHONY: def update-registry update-fixtures | ||
.PHONY: def update-registry update-fixtures submodule-status | ||
|
||
def: update-registry update-fixtures | ||
|
||
update-registry: | ||
@echo "Updating cosmos/chain-registry submodule to latest" | ||
git submodule update --remote --init --recursive repos/chain-registry | ||
@echo "cosmos/chain-registry submodule is updated to latest" | ||
|
||
update-fixtures: | ||
@echo "Updating chain-registry/chain-registry-fixtures submodule" | ||
git submodule sync repos/chain-registry-fixtures | ||
git submodule update repos/chain-registry-fixtures | ||
@echo "chain-registry/chain-registry-fixtures submodule is updated to the commit specified in .gitmodules" | ||
git submodule update --remote --init --recursive repos/chain-registry-fixtures | ||
|
||
submodule-status: | ||
@echo "Checking submodule statuses..." | ||
@pushd repos/chain-registry >/dev/null; \ | ||
echo "Last 2 commits in repos/chain-registry:"; \ | ||
git log -n 2 --oneline; \ | ||
popd >/dev/null | ||
@pushd repos/chain-registry-fixtures >/dev/null; \ | ||
echo "Last 2 commits in repos/chain-registry-fixtures:"; \ | ||
git log -n 2 --oneline; \ | ||
popd >/dev/null |