mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
44de29bcf0
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
19 lines
354 B
Bash
Executable file
19 lines
354 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: ./update_deps.sh <revision>"
|
|
exit 1
|
|
fi
|
|
|
|
REV="$1"
|
|
root="$(git rev-parse --show-toplevel)"
|
|
|
|
cd "$root" || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
go mod tidy
|
|
|
|
for dir in "$root"/examples/*/; do
|
|
cd "$dir" || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
go mod tidy
|
|
done
|